Skip to content

Commit

Permalink
fix: type error in calling agentmodelnotvalid
Browse files Browse the repository at this point in the history
  • Loading branch information
alt-glitch committed Apr 16, 2024
1 parent 109da71 commit 884ab9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agents-api/agents_api/model_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def validate_configuration(model: str):
Validates the model specified in the request
"""
if model not in ALL_AVAILABLE_MODELS:
raise AgentModelNotValid(model, ALL_AVAILABLE_MODELS.keys())
raise AgentModelNotValid(model, list(ALL_AVAILABLE_MODELS.keys()))
model_client = get_model_client(model)
if model_client.api_key == "":
raise MissingAgentModelAPIKeyError(model)
Expand Down

0 comments on commit 884ab9e

Please sign in to comment.