Skip to main content

Tips

Built-in AI models

  • Connect AI models to your product without wiring low-level APIs yourself
  • No API key setup required
  • Ready to use out of the box

Troubleshooting

Debug AI feature errors

AI errors? Check that headers match body serialization. Common issues
  • Headers breaking body serialization
  • Content-Type mismatch
  • Wrong payload format
Steps
  1. Inspect request headers in the API call
  2. Ask the AI to remove unnecessary headers
  3. Align headers with body serialization
  4. Drop unneeded header config

Match Content-Type correctly

Remove extra headers so Content-Type matches the body. Check
  • Correct Content-Type
  • Body format matches
  • Encoding consistent
Typical mistakes
  • JSON body with text/plain
  • Form body with application/json
  • Encoding mismatch