Skip to content

Fix: Add support for object-json and object-tool modes in completion language model #49

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

Closed
wants to merge 4 commits into from

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Fixes #43

This PR adds support for object-json and object-tool modes in the completion language model, which were previously throwing UnsupportedFunctionalityError. This is critical for models like Anthropic Claude that use structured outputs.

Changes:

  • Implemented object-json mode by setting response_format: { type: 'json_object' }
  • Implemented object-tool mode by setting tool_choice and tools configuration
  • Added tests for both modes

Link to Devin run: https://app.devin.ai/sessions/d010b351a6cc4766a994478e861e880d
Requested by: Louis ([email protected])

Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link
Contributor Author

Closing due to inactivity for more than 7 days.

@louisgv louisgv deleted the devin/1743312243-add-object-modes branch May 6, 2025 18:26
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.

Object JSON and Object Tool mode not supported
0 participants