CreatePresetsChatCompletionsRequest - Go SDK

CreatePresetsChatCompletionsRequest type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

Fields

FieldTypeRequiredDescriptionExample
Slugstring✔️URL-safe slug identifying the preset. Created if it does not exist.my-preset
ChatRequestcomponents.ChatRequest✔️N/A{"max_tokens": 150,"messages": [{"content": "You are a helpful assistant.","role": "system"},
{"content": "What is the capital of France?","role": "user"}
],
“model”: “openai/gpt-4”,
“temperature”: 0.7
}