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

Claude: text content blocks must contain non-whitespace text #384

Open
colinmollenhour opened this issue Nov 8, 2024 · 0 comments
Open

Comments

@colinmollenhour
Copy link

Describe the bug

I installed mods using brew, changed the config to set the model to "claude3.5-sonnet", added my ANTHROPIC_API_KEY to the environment and then ran "mods" to test which works fine. However, when I pipe input to any "mods -f" command I get this error:

$ curl -q ipinfo.io | mods -f "Who is my ISP?" | glow

   ERROR  anthropic API request error.  

  error, status code: 400, message: system: text content blocks must contain non-whitespace text 

Setup

  • OS: Ubuntu 22.04 via WSL2
  • Shell: bash
  • Terminal Emulator: any
  • Terminal Multiplexer: none

Expected behavior
Some output from the AI model rather than an API request error.

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

No branches or pull requests

1 participant