v2
OpenAPI 3.0.02026-08-051996591.2 MBGeneration Presets
Create a generation preset
Creates a custom generation preset for use in query and chat requests. A generation preset bundles a prompt template, an LLM, and model parameters into a reusable configuration.
Reference the created preset by name with the generation_preset_name field in query or chat requests.
post/v2/generation_presets
Headers
Request-Timeoutinteger
The platform makes a best effort to complete the request in the specified seconds, or it times out.
Request-Timeout-Millisinteger
The platform makes a best effort to complete the request in the specified milliseconds, or it times out.
Request body
Example request
{
"id": "gnp_123",
"name": "Mockingbird 2.0",
"description": "Mockingbird LLM 2.0 prompt for summarizing query results as an answer. Designed for RAG.",
"llm_name": "mockingbird-2.0",
"max_used_search_results": 50,
"max_tokens": 500,
"temperature": 0.4,
"frequency_penalty": 0.2,
"presence_penalty": 0.2,
"ownership": "platform"
}Response
The created generation preset.
Example response
{
"id": "gnp_123",
"name": "Mockingbird 2.0",
"description": "Mockingbird LLM 2.0 prompt for summarizing query results as an answer. Designed for RAG.",
"llm_name": "mockingbird-2.0",
"max_used_search_results": 50,
"max_tokens": 500,
"temperature": 0.4,
"frequency_penalty": 0.2,
"presence_penalty": 0.2,
"ownership": "platform"
}