File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
articles/ai-services/openai/how-to Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ services: cognitive-services
66manager : nitinme
77ms.service : azure-ai-openai
88ms.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
1212recommendations : 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
You can’t perform that action at this time.
0 commit comments