#Is it possible to update the instructions inside a thread Is it possible to update the instructions

1 messages · Page 1 of 1 (latest)

slow oak
#

For assistant API:
I know that we can override the instructions when create a new run inside a thread. So that the original instructions for the assistant would be replaced by the new instructions.
But I’m wondering if I can also update the instructions for the runs inside a thread? i.e., after different function calls I can update the instructions? The idea for this purpose is to save tokens.

pulsar ironBOT
#

Hi @slow oak. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Based on the information provided in the extracts, it appears that you can override the default instructions of an Assistant when creating a new Run within a Thread. This is done by passing new instructions to the Assistant while creating the Run. However, there is no explicit mention of being able to update the instructions for existing Runs within a Thread after they have been created.

Here is an example of how you can override the instructions when creating a Run:

run = client.beta.threads.runs.create(
 thread_id=thread.id,
 assistant_id=assistant.id,
 instructions="Please address the user as Jane Doe. The user has a premium account."
)

(Source: OpenAI Documentation (https://platform.openai.com/docs/assistants/overview))

In terms of saving tokens, one user in the OpenAI community forum suggested the idea of generating instructions with tools to potentially save tokens. However, it's not clear from the extracts whether this approach would be effective or how it could be implemented.

For more detailed information or to confirm these details, you may want to refer to the OpenAI Documentation (https://platform.openai.com/docs) or ask in the OpenAI Community Forum (https://community.openai.com).

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: