mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-16 18:29:40 +00:00
shu/gemini 2.5 pro support (#2109)
This commit is contained in:
parent
a72fcadd9a
commit
7e5e684f53
3 changed files with 37 additions and 2 deletions
8
setup.sh
8
setup.sh
|
@ -109,7 +109,13 @@ setup_llm_providers() {
|
||||||
else
|
else
|
||||||
update_or_add_env_var "GEMINI_API_KEY" "$gemini_api_key"
|
update_or_add_env_var "GEMINI_API_KEY" "$gemini_api_key"
|
||||||
update_or_add_env_var "ENABLE_GEMINI" "true"
|
update_or_add_env_var "ENABLE_GEMINI" "true"
|
||||||
model_options+=("GEMINI_PRO")
|
model_options+=(
|
||||||
|
"GEMINI_FLASH_2_0"
|
||||||
|
"GEMINI_FLASH_2_0_LITE"
|
||||||
|
"GEMINI_PRO"
|
||||||
|
"GEMINI_2.5_PRO_PREVIEW_03_25"
|
||||||
|
"GEMINI_2.5_PRO_EXP_03_25"
|
||||||
|
)
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
update_or_add_env_var "ENABLE_GEMINI" "false"
|
update_or_add_env_var "ENABLE_GEMINI" "false"
|
||||||
|
|
|
@ -279,7 +279,15 @@ def setup_llm_providers() -> None:
|
||||||
else:
|
else:
|
||||||
update_or_add_env_var("GEMINI_API_KEY", gemini_api_key)
|
update_or_add_env_var("GEMINI_API_KEY", gemini_api_key)
|
||||||
update_or_add_env_var("ENABLE_GEMINI", "true")
|
update_or_add_env_var("ENABLE_GEMINI", "true")
|
||||||
model_options.extend(["GEMINI_FLASH_2_0", "GEMINI_FLASH_2_0_LITE", "GEMINI_PRO"])
|
model_options.extend(
|
||||||
|
[
|
||||||
|
"GEMINI_FLASH_2_0",
|
||||||
|
"GEMINI_FLASH_2_0_LITE",
|
||||||
|
"GEMINI_PRO",
|
||||||
|
"GEMINI_2.5_PRO_PREVIEW_03_25",
|
||||||
|
"GEMINI_2.5_PRO_EXP_03_25",
|
||||||
|
]
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
update_or_add_env_var("ENABLE_GEMINI", "false")
|
update_or_add_env_var("ENABLE_GEMINI", "false")
|
||||||
|
|
||||||
|
|
|
@ -348,6 +348,27 @@ if settings.ENABLE_GEMINI:
|
||||||
max_completion_tokens=8192,
|
max_completion_tokens=8192,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
LLMConfigRegistry.register_config(
|
||||||
|
"GEMINI_2.5_PRO_PREVIEW_03_25",
|
||||||
|
LLMConfig(
|
||||||
|
"gemini/gemini-2.5-pro-preview-03-25",
|
||||||
|
["GEMINI_API_KEY"],
|
||||||
|
supports_vision=True,
|
||||||
|
add_assistant_prefix=False,
|
||||||
|
max_completion_tokens=1048576,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
LLMConfigRegistry.register_config(
|
||||||
|
"GEMINI_2.5_PRO_EXP_03_25",
|
||||||
|
LLMConfig(
|
||||||
|
"gemini/gemini-2.5-pro-exp-03-25",
|
||||||
|
["GEMINI_API_KEY"],
|
||||||
|
supports_vision=True,
|
||||||
|
add_assistant_prefix=False,
|
||||||
|
max_completion_tokens=1048576,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
if settings.ENABLE_NOVITA:
|
if settings.ENABLE_NOVITA:
|
||||||
LLMConfigRegistry.register_config(
|
LLMConfigRegistry.register_config(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue