Use the correct env var LLM_KEY instead of LLM_MODEL (#98)

This commit is contained in:
Kerem Yilmaz
2024-03-17 20:27:44 -07:00
committed by GitHub
parent d1de19556e
commit 084c1a2d5b
3 changed files with 14 additions and 4 deletions

View File

@@ -23,9 +23,9 @@ AZURE_API_BASE=""
# AZURE_API_VERSION: The version of Azure's API to use. # AZURE_API_VERSION: The version of Azure's API to use.
AZURE_API_VERSION="" AZURE_API_VERSION=""
# LLM_MODEL: The chosen language model to use. This should be one of the models # LLM_KEY: The chosen language model to use. This should be one of the models
# provided by the enabled LLM providers (e.g., OPENAI_GPT4_TURBO, OPENAI_GPT4V, ANTHROPIC_CLAUDE3, AZURE_OPENAI_GPT4V). # provided by the enabled LLM providers (e.g., OPENAI_GPT4_TURBO, OPENAI_GPT4V, ANTHROPIC_CLAUDE3, AZURE_OPENAI_GPT4V).
LLM_MODEL="" LLM_KEY=""
# Web browser configuration for scraping: # Web browser configuration for scraping:
# BROWSER_TYPE: Can be either "chromium-headless" or "chromium-headful". # BROWSER_TYPE: Can be either "chromium-headless" or "chromium-headful".

12
.github/sync.yml vendored
View File

@@ -6,4 +6,14 @@ Skyvern-AI/skyvern-cloud:
- source: pyproject.toml - source: pyproject.toml
dest: pyproject.toml dest: pyproject.toml
- source: poetry.lock - source: poetry.lock
dest: poetry.lock dest: poetry.lock
- source: setup.sh
dest: setup.sh
- source: .env.example
dest: .env.example
- source: run_ui.sh
dest: run_ui.sh
- source: run_skyvern.sh
dest: run_skyvern.sh
- source: run_alembic_check.sh
dest: run_alembic_check.sh

View File

@@ -107,7 +107,7 @@ setup_llm_providers() {
read -p "Choose a model by number (e.g., 1 for ${model_options[0]}): " model_choice read -p "Choose a model by number (e.g., 1 for ${model_options[0]}): " model_choice
chosen_model=${model_options[$((model_choice-1))]} chosen_model=${model_options[$((model_choice-1))]}
echo "Chosen LLM Model: $chosen_model" echo "Chosen LLM Model: $chosen_model"
update_or_add_env_var "LLM_MODEL" "$chosen_model" update_or_add_env_var "LLM_KEY" "$chosen_model"
fi fi
echo "LLM provider configurations updated in .env." echo "LLM provider configurations updated in .env."