Prompts
Update a prompt
patch/v2/prompts/{id}
Path parameters
idstring required
Unique identifier of the prompt
Unique identifier of the prompt
Request body
Example request
{
"prompt": {
"model": "anthropic/claude-3-5-sonnet-20241022",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant"
},
{
"role": "user",
"content": "Hello!"
}
],
"temperature": 0.5
},
"path": "Default"
}Response
Prompt updated.
Example response
{
"prompt_config": {
"messages": [
{
"content": [
{
"image_url": {
"url": "https://picsum.photos/id/1/200/300"
}
}
]
}
]
},
"prompt": {
"fallbacks": [
{
"model": "openai/gpt-4o-mini"
}
],
"retry": {
"count": 3,
"on_codes": [
429,
500,
502,
503,
504
]
},
"cache": {
"ttl": 3600
},
"load_balancer": {
"type": "weight_based",
"models": [
{
"model": "openai/gpt-4o",
"weight": 0.7
},
{
"model": "anthropic/claude-3-5-sonnet",
"weight": 0.3
}
]
},
"timeout": {
"call_timeout": 30000
},
"model": "openai/gpt-4o"
}
}