From 884ab9ec8589233752007bb1938409ae08197d37 Mon Sep 17 00:00:00 2001 From: Siddharth Balyan Date: Tue, 16 Apr 2024 16:01:05 +0530 Subject: [PATCH] fix: type error in calling agentmodelnotvalid --- agents-api/agents_api/model_registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents-api/agents_api/model_registry.py b/agents-api/agents_api/model_registry.py index 921cc76dc..51752ae49 100644 --- a/agents-api/agents_api/model_registry.py +++ b/agents-api/agents_api/model_registry.py @@ -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)