add gemini 2.0 flash (#1745)

This commit is contained in:
Shuchang Zheng 2025-02-07 14:39:31 +08:00 committed by GitHub
parent f9296ba1d6
commit 22cefee5f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -305,6 +305,26 @@ if settings.ENABLE_AZURE_O3_MINI:
)
if settings.ENABLE_GEMINI:
LLMConfigRegistry.register_config(
"GEMINI_FLASH_2_0",
LLMConfig(
"gemini/gemini-2.0-flash-001",
["GEMINI_API_KEY"],
supports_vision=True,
add_assistant_prefix=False,
max_completion_tokens=8192,
),
)
LLMConfigRegistry.register_config(
"GEMINI_FLASH_2_0_LITE",
LLMConfig(
"gemini/gemini-2.0-flash-lite-preview-02-05",
["GEMINI_API_KEY"],
supports_vision=True,
add_assistant_prefix=False,
max_completion_tokens=8192,
),
)
LLMConfigRegistry.register_config(
"GEMINI_PRO",
LLMConfig(