Generates a response for the given chat conversation.
Should follow the format Basic {credentials}. The {credentials} consists of the Base64-encoded string of the API key and the secret in the format key:secret
Chat completion request.
Describes the serving ID of the request to select the right model.
A list of messages comprising the conversation so far.
Chat message.
A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for. Only supported for OpenAI.
Controls which (if any) function is called by the model. Only supported for OpenAI.
Configuration for chat completion generation.
Format that the model must output..
RESPONSE_FORMAT_UNSPECIFIED, RESPONSE_FORMAT_TEXT, RESPONSE_FORMAT_JSON, RESPONSE_FORMAT_JSON_SCHEMA Request timeout in seconds. This setting applies only to selected clients and configured by a separate request to Inworld. Make sure to configure these specific requests accordingly, as this timeout will not affect others.
JSON schema configuration. Only supported for OpenAI.