Prompt Management
Test Prompt
Test a prompt by rendering it with variables and executing an LLM call.
This endpoint allows testing prompts before saving them to the database. The response is always streamed.
Example Request:
curl -X POST "http://localhost:4000/prompts/test" \
-H "Authorization: Bearer <your_api_key>" \
-H "Content-Type: application/json" \
-d '{
"dotprompt_content": "---\nmodel: gpt-4o\ntemperature: 0.7\n---\n\nUser: Hello {{name}}",
"prompt_variables": {
"name": "World"
}
}'
post/prompts/test
Request
- Base URL: https://apiclaw.biz (the document declares no server; this is the origin it was published from)
- URL: https://apiclaw.biz/prompts/test
- Auth: API key in header x-litellm-api-key
Request body
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.