Skip to content

Commit 63e56ee

Browse files
committed
code fix
1 parent 5a2d8fa commit 63e56ee

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

articles/ai-services/openai/how-to/code-interpreter.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ services: cognitive-services
66
manager: nitinme
77
ms.service: azure-ai-openai
88
ms.topic: how-to
9-
ms.date: 05/20/2024
10-
author: mrbullwinkle
11-
ms.author: mbullwin
9+
ms.date: 10/15/2024
10+
author: aahill
11+
ms.author: aahi
1212
recommendations: false
1313

1414
---
@@ -136,7 +136,7 @@ assistant = client.beta.assistants.create(
136136
instructions="You are an AI assistant that can write code to help answer math questions.",
137137
model="gpt-4-1106-preview",
138138
tools=[{"type": "code_interpreter"}],
139-
file_ids=[file.id]
139+
tool_resources={"code interpreter":{"file_ids":[file.id]}}
140140
)
141141
```
142142

@@ -162,6 +162,11 @@ curl https://YOUR_RESOURCE_NAME.openai.azure.com/openai/assistants?api-version=2
162162
],
163163
"model": "gpt-4-1106-preview",
164164
"file_ids": ["assistant-123abc456"]
165+
"tool_resources"{
166+
"code interpreter": {
167+
"file_ids": [assistant-1234]
168+
}
169+
}
165170
}'
166171
```
167172

0 commit comments

Comments
 (0)