Prompt Optimization
Retrieve
Checks the status of a Prompt Optimization job
GET
Authorizations
Path Parameters
Response
200
application/json
Successful Response
The optimized_prompt_messages field is an empty list unless the state is done.
Detailed status of the job
Example:
["Downloading model", "Tuning prompt"]
The job id
Example:
"1234abcd"
Current state of the job
Available options:
QUEUED
, RUNNING
, DONE
, ERROR
, CANCELLED
The optimized prompt messages in the OpenAI message format with the jinja {{ input }} variable for the next user prompt
Example:
[
{
"content": "Write a great story around the given topic.",
"role": "system"
},
{ "content": "{{ input }}", "role": "user" }
]