发布

  • [OPIK-4852] [BE/FE] fix: remove -exp suffix from gemini-2.0-flash model name + remove deprecated models (#5556)

    frostbyte_neo 发布于 2026-03-08 12:20:00 +00:00

    • [NA] [BE/FE] fix: remove -exp suffix from gemini-2.0-flash model name

    Fixed gemini-2.0-flash-exp -> gemini-2.0-flash

    The -exp suffix is not supported by Google's Gemini API v1beta.
    Reverted other model names to original values as they don't work in v1beta API regardless of suffix.

    Tested with actual Google Gemini API - gemini-2.0-flash now works correctly.

    • Remove deprecated and unavailable Gemini models from v1beta API
    • Removed GEMINI_2_0_FLASH_LITE (deprecated by Google)
    • Removed GEMINI_1_5_FLASH (not available in v1beta)
    • Removed GEMINI_1_5_FLASH_8B (not available in v1beta)

    These models return errors when used with the Gemini API v1beta endpoint.

    • Remove gemini-1.5-pro - not available in v1beta API

    Updated test references to use gemini-2.0-flash instead.

    下载附件