[Deprecated] Use /ai-optimizer/v1beta/organizations/{organization_id}/playground-chat-completions instead.

Body Params

Defines the request for creating chat completions in playground.

selectedPlaygroundProviders
array of objects
required
selectedPlaygroundProviders*
selectedRegisteredProviders
array of objects
required
selectedRegisteredProviders*
routerChatCompletion
object
required

Defines the request for chat completion. It supports a subset of OpenAI API (https://platform.openai.com/docs/api-reference/chat/create) spec.

proxyChatCompletion
object
required

Defines the request for chat completion. It supports a subset of OpenAI API (https://platform.openai.com/docs/api-reference/chat/create) spec.

double | null

This weight determines the importance of the quality over cost when comparing models. Default is 0.5. E.g.: 0.5 means that the quality of the model is as important as the cost. 1 means that only the quality will be considered. 0 means that only the cost will be considered.

Response

Language
Credentials
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json