Skip to content

Instantly share code, notes, and snippets.

@Aaron1011
Created April 23, 2025 14:59
Show Gist options
  • Save Aaron1011/a51ab31fc726b74ad1e2ea7692afeb97 to your computer and use it in GitHub Desktop.
Save Aaron1011/a51ab31fc726b74ad1e2ea7692afeb97 to your computer and use it in GitHub Desktop.
Bad Grok request
curl https://api.x.ai/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer $XAI_API_KEY" -d '{"messages":[{"role":"user","content":"What is the name of the capital city of Japan?"}],"model":"grok-3-mini","response_format":{"type":"json_object"},"stream":false}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment