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

Anthropic doesn't support JSON mode object generation. #3017

Closed
Jesscha opened this issue Jan 30, 2025 · 1 comment
Closed

Anthropic doesn't support JSON mode object generation. #3017

Jesscha opened this issue Jan 30, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@Jesscha
Copy link

Jesscha commented Jan 30, 2025

Describe the bug

When using the Twitter plugin with Anthropic's API (Claude), the system fails because Anthropic doesn't support JSON mode object generation. The error message states: "'json-mode object generation' functionality not supported."

To Reproduce

Configure character to use Anthropic/Claude as the model provider

Enable Twitter plugin

Attempt to generate a tweet action
System fails with error about JSON mode not being supported

Expected behavior

The system should fall back to "auto" mode for object generation when using Anthropic/Claude models, since they don't support JSON mode. This would allow the Twitter plugin to work properly with Anthropic models.

@Jesscha Jesscha added the bug Something isn't working label Jan 30, 2025
Copy link
Contributor

Hello @Jesscha! Welcome to the elizaOS community. Thank you for opening your first issue; we appreciate your contribution. You are now an elizaOS contributor!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants