Skip to content

Commit

Permalink
use VALID_MODELS to support JULEP_MODELS
Browse files Browse the repository at this point in the history
  • Loading branch information
alt-glitch committed May 2, 2024
1 parent 6fe70b3 commit 966d0ec
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):
"""
if model not in ALL_AVAILABLE_MODELS:
raise AgentModelNotValid(model, ALL_AVAILABLE_MODELS)
elif model not in get_valid_models():
elif model not in VALID_MODELS:
raise MissingAgentModelAPIKeyError(model)


Expand Down

0 comments on commit 966d0ec

Please sign in to comment.