Skip to content

Commit

Permalink
feat(api): add additional instructions for runs (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Dec 19, 2023
1 parent 88253e6 commit dcf732b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/resources/beta/threads/runs/runs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,16 @@ export interface RunCreateParams {
assistant_id: string;

/**
* Override the default system message of the assistant. This is useful for
* modifying the behavior on a per-run basis.
* Appends additional instructions at the end of the instructions for the run. This
* is useful for modifying the behavior on a per-run basis without overriding other
* instructions.
*/
additional_instructions?: string | null;

/**
* Overrides the
* [instructions](https://platform.openai.com/docs/api-reference/assistants/createAssistant)
* of the assistant. This is useful for modifying the behavior on a per-run basis.
*/
instructions?: string | null;

Expand Down
1 change: 1 addition & 0 deletions tests/api-resources/beta/threads/runs/runs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ describe('resource runs', () => {
test('create: required and optional params', async () => {
const response = await openai.beta.threads.runs.create('string', {
assistant_id: 'string',
additional_instructions: 'string',
instructions: 'string',
metadata: {},
model: 'string',
Expand Down

0 comments on commit dcf732b

Please sign in to comment.