curl --request GET \
--url https://proxy.qualifire.ai/api/studio/prompts/{id} \
--header 'X-Qualifire-API-Key: <api-key>'{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"active_revision": 123,
"beta": true,
"created_at": "<string>",
"active": true,
"revision": 123,
"messages": [
{
"content": "<string>",
"function_call": {
"arguments": "<string>",
"name": "<string>"
},
"multiContent": [
{
"image_url": {
"detail": "high",
"url": "<string>"
},
"text": "<string>",
"type": "text"
}
],
"name": "<string>",
"role": "<string>",
"tool_call_id": "<string>",
"tool_calls": [
{
"function": {
"arguments": "<string>",
"name": "<string>"
},
"id": "<string>",
"index": 123,
"type": "function"
}
]
}
],
"parameters": {
"model": "<string>",
"temperature": 123,
"top_p": 123,
"frequency_penalty": 123,
"presence_penalty": 123,
"max_tokens": 123,
"stop": [
"<string>"
],
"stream": true
}
}Returns the prompt with the given ID.
curl --request GET \
--url https://proxy.qualifire.ai/api/studio/prompts/{id} \
--header 'X-Qualifire-API-Key: <api-key>'{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"active_revision": 123,
"beta": true,
"created_at": "<string>",
"active": true,
"revision": 123,
"messages": [
{
"content": "<string>",
"function_call": {
"arguments": "<string>",
"name": "<string>"
},
"multiContent": [
{
"image_url": {
"detail": "high",
"url": "<string>"
},
"text": "<string>",
"type": "text"
}
],
"name": "<string>",
"role": "<string>",
"tool_call_id": "<string>",
"tool_calls": [
{
"function": {
"arguments": "<string>",
"name": "<string>"
},
"id": "<string>",
"index": 123,
"type": "function"
}
]
}
],
"parameters": {
"model": "<string>",
"temperature": 123,
"top_p": 123,
"frequency_penalty": 123,
"presence_penalty": 123,
"max_tokens": 123,
"stop": [
"<string>"
],
"stream": true
}
}ID of the prompt to retrieve
Revision of the prompt to retrieve, defaults to the active revision
OK
Show child attributes
Show child attributes
This property isn't in the official documentation, but it's in the documentation for the official library for python:
For Role=tool prompts this should be set to the ID given in the assistant's prior request to call a tool.
For Role=assistant prompts this may be set to the tool calls generated by the model, such as function calls.
Show child attributes
Index is not nil only in chat completion chunk object
function