Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Yimi81 committed Aug 12, 2024
1 parent 557624b commit ebba84a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modelscope_agent/llm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_chat_model(model: str, model_server: str, **kwargs) -> BaseChatModel:
"""
model_type = re.split(r'[-/_]', model)[0] # parser qwen / gpt / ...
registered_model_id = f'{model_server}_{model_type}'
print(LLM_REGISTRY)

if registered_model_id in LLM_REGISTRY: # specific model from specific source
return LLM_REGISTRY[registered_model_id](model, model_server, **kwargs)
elif model_server in LLM_REGISTRY: # specific source
Expand Down

0 comments on commit ebba84a

Please sign in to comment.