Skip to content

Commit

Permalink
Fix bug with model list (All-Hands-AI#2978)
Browse files Browse the repository at this point in the history
  • Loading branch information
neubig committed Jul 17, 2024
1 parent 2c02ab9 commit 9f12c77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opendevin/server/listen.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ async def get_litellm_models() -> list[str]:
)
# TODO: for bedrock, this is using the default config
llm_config: LLMConfig = config.get_llm_config()
bedrock_model_list = []
if (
llm_config.aws_region_name
and llm_config.aws_access_key_id
Expand All @@ -311,7 +312,7 @@ async def get_litellm_models() -> list[str]:
llm_config.aws_access_key_id,
llm_config.aws_secret_access_key,
)
model_list = litellm_model_list_without_bedrock + bedrock_model_list
model_list = litellm_model_list_without_bedrock + bedrock_model_list
for llm_config in config.llms.values():
ollama_base_url = llm_config.ollama_base_url
if llm_config.model.startswith('ollama'):
Expand Down

0 comments on commit 9f12c77

Please sign in to comment.