Skip to content

Commit ea779f7

Browse files
committed
fixes
1 parent 9d75ea6 commit ea779f7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

articles/ai-services/openai/assistants-reference.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ Create an assistant with a model and instructions.
3636
| description| string or null | Optional | The description of the assistant. The maximum length is 512 characters.|
3737
| instructions | string or null | Optional | The system instructions that the assistant uses. The maximum length is 256,000 characters.|
3838
| tools | array | Optional | Defaults to []. A list of tools enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can currently be of types `code_interpreter`, or `function`. A `function` description can be a maximum of 1,024 characters. |
39-
| file_ids | array | Optional | Defaults to []. A list of file IDs attached to this assistant. There can be a maximum of 20 files attached to the assistant. Files are ordered by their creation date in ascending order.|
4039
| metadata | map | Optional | Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.|
4140
| temperature | number or null | Optional | Defaults to 1. Determines what sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. |
4241
| top_p | number or null | Optional | Defaults to 1. An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both. |
@@ -230,7 +229,6 @@ my_updated_assistant = client.beta.assistants.update(
230229
name="HR Helper",
231230
tools=[{"type": "code-interpreter"}],
232231
model="gpt-4", #model = model deployment name
233-
file_ids=["assistant-abc123", "assistant-abc456"],
234232
)
235233

236234
print(my_updated_assistant)
@@ -245,8 +243,7 @@ curl https://YOUR_RESOURCE_NAME.openai.azure.com/openai/assistants/{assistant-id
245243
-d '{
246244
"instructions": "You are an HR bot, and you have access to files to answer employee questions about company policies. Always response with info from either of the files.",
247245
"tools": [{"type": "code-interpreter"}],
248-
"model": "gpt-4",
249-
"file_ids": ["assistant-abc123", "assistant-abc456"]
246+
"model": "gpt-4"
250247
}'
251248
```
252249

@@ -313,7 +310,6 @@ Assistants use the [same API for file upload as fine-tuning](/rest/api/azureopen
313310
| `model` | string | Name of the model deployment name to use.|
314311
| `instructions` | string or null | The system instructions that the assistant uses. The maximum length is 32768 characters.|
315312
| `tools` | array | A list of tool enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can be of types code_interpreter, or function. A `function` description can be a maximum of 1,024 characters.|
316-
| `file_ids` | array | A list of file IDs attached to this assistant. There can be a maximum of 20 files attached to the assistant. Files are ordered by their creation date in ascending order.|
317313
| `metadata` | map | Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.|
318314

319315
| `temperature` | number or null | Optional | Defaults to 1. Determines what sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. |

0 commit comments

Comments
 (0)