Update Prompt
Update a Prompt
Authorizations
Path Parameters
The ID of the Prompt to update
Body
This property isn't in the official documentation, but it's in the documentation for the official library for python:
- https://github.com/openai/openai-python/blob/main/chatml.md
- https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb
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.
Index is not nil only in chat completion chunk object
function
Response
This property isn't in the official documentation, but it's in the documentation for the official library for python:
- https://github.com/openai/openai-python/blob/main/chatml.md
- https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb
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.
Index is not nil only in chat completion chunk object
function