AI Gateway
POST /ai/v1/chat/completions
Changed onRequest
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- AuthHTTP bearer
Request body
Response
Chat completion response
Changes
- info
added the new optional request property
allOf[subschema #2]/messages/items/content/oneOf[#/components/schemas/MessageContent]/oneOf[subschema #2]/items/cache_control - info
added the optional property
choices/items/message/content/oneOf[#/components/schemas/MessageContent]/oneOf[subschema #2]/items/cache_controlto the response with the status - info
added the optional property
usage/oneOf[#/components/schemas/UsageInfo]/prompt_tokens_detailsto the response with the status
- info