Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use VALID_MODELS to support JULEP_MODELS #308

Merged
merged 1 commit into from
May 2, 2024
Merged

Conversation

alt-glitch
Copy link
Contributor

@alt-glitch alt-glitch commented May 2, 2024

🚀 This description was created by Ellipsis for commit 966d0ec

Summary:

Refactors validate_configuration to use VALID_MODELS directly for model validation, including JULEP_MODELS.

Key points:

  • Updated validate_configuration in /agents-api/agents_api/model_registry.py to use VALID_MODELS directly.
  • Removed the call to get_valid_models(), simplifying the validation logic.
  • Ensures JULEP_MODELS are included in the validation process.

Generated with ❤️ by ellipsis.dev

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested.

  • Reviewed the entire pull request up to 966d0ec
  • Looked at 14 lines of code in 1 files
  • Took 54 seconds to review
More info
  • Skipped 0 files when reviewing.
  • Skipped posting 0 additional comments because they didn't meet confidence threshold of 50%.

Workflow ID: wflow_uXXKJgZXSrUT67VJ


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with review rules, user-specific overrides, quiet mode, and more. See docs.

@@ -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:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replacing get_valid_models() with VALID_MODELS might introduce issues if VALID_MODELS does not dynamically update as get_valid_models() might. This could lead to using outdated or incorrect model validations. Consider reverting this change or ensuring VALID_MODELS updates dynamically as needed.

@whiterabbit1983 whiterabbit1983 merged commit 2d41621 into dev May 2, 2024
9 checks passed
@whiterabbit1983 whiterabbit1983 deleted the julep-model-fix branch May 2, 2024 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants