Skip to content

Conversation

@eb8680
Copy link
Contributor

@eb8680 eb8680 commented Feb 9, 2026

This refactoring PR cleans up some logic in handlers.llm.completions related to tool call encoding and decoding by coercing it into the existing Encodable API.

includes the raw assistant message for retry handling.
"""
tool_specs = {k: _function_model(t) for k, t in tools.items()}
response_model = pydantic.create_model(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing response_model here was the original motivation for this PR because it was causing problems with less capable LLMs in #545, but I ended up doing a bit more cleanup along the way.

@eb8680 eb8680 mentioned this pull request Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant