prompts
Test Prompt
Changed onTest 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 URLhttps://api.flock.io (the document declares no server; this is the origin it was published from)
- URLhttps://api.flock.io/prompts/test
- AuthAPI key in header x-litellm-api-key
Request body
Response
Successful Response
unknown required
Changes
- info
api tag
promptsadded - info
api tag
Prompt Managementremoved
- info
- info
api tag
Prompt Managementadded - info
api tag
promptsremoved
- info