Errors with API calls

Trying the new API feature and so excited, but keep getting this error:

  1. “Error generating content:”

  2. ▶{stack: “Error: No content received from API at handleGenerateWithAI (https://zp1v56uxy8rdx5ypatb0ockcb9tr6a-oci3--5173--2e03455b.local-credentialless.webcontainer-api.io/src/App.tsx?t=1746406975382:117:15)”, message: “No content received from API”, name: “Error”}

at handleGenerateWithAI (/src/App.tsx?t=1746406975382:120:15)

  • My React code is correctly calling the Pickaxe API (https://api.pickaxe.co/v1/completions).
  • My API key is correct, and Pickaxe is authenticating you.
  • The Pickaxe API itself is responding with an HTTP status 200 OK (which means Pickaxe successfully handled your request).
  • However, the content of Pickaxe’s successful response shows an internal error on their end:

JSON

{
  success: false,
  error: '400 Client Error: Bad Request for url: https://api.anthropic.com/v1/messages'
}

This means Pickaxe tried to call the underlying model (Anthropic Claude, based on the URL) on your behalf, but that call failed with a “400 Bad Request”.

Hi @riskacademy,

Please use different model for now, we’re currently fixing actions on APIs for Anthropic models.

Ok, that’s a reasonable temp fix

Hi @riskacademy,

We’ve updated the API system, this should be fixed for Anthropic models now.

Thank you , will test out tomorrow