Invalid answer

The answer did not have the shape the request asked for.

Status
502
Type
https://docs.digitospace.com/problems/invalid-answer

What it means

The request asked for an answer of a set shape, such as JSON that matches a schema, and the answer we got did not have it. detail says what was wrong with it.

The work was done, so it still counts toward your usage.

How to fix it

  • Send the request again. A new answer often has the right shape.
  • When it keeps failing, make the shape easier to give. Describe each field in the instructions, keep the schema small, and allow enough output for the whole answer.

Codes

CodeRetryableWhen
answer_invalidYesAI: the model did not answer with JSON that matches the schema

Last updated