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

small model updates #2081

Merged
merged 4 commits into from
Feb 11, 2025
Merged

Conversation

ashpreetbedi
Copy link
Contributor

small model updates

@ashpreetbedi ashpreetbedi marked this pull request as ready for review February 11, 2025 16:46
@ashpreetbedi ashpreetbedi requested a review from a team as a code owner February 11, 2025 16:46
@@ -23,7 +23,7 @@ class ModelResponse:
content: Optional[str] = None
parsed: Optional[Any] = None
audio: Optional[AudioOutput] = None
tool_calls: List[Dict[str, Any]] = field(default_factory=list)
tool_calls: Optional[List[Dict[str, Any]]] = None
Copy link
Contributor

Choose a reason for hiding this comment

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

This change will break tool calls for some of the models. Is it not better to initialize the list in ModelResponse as compared to a null check and list initialization in model class?

@ashpreetbedi ashpreetbedi merged commit c8dafa9 into feat/stateless-models Feb 11, 2025
1 check failed
@ashpreetbedi ashpreetbedi deleted the ab/small-model-updates branch February 11, 2025 22:02
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