You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"You're a creative helper that specializes in brainstorming designs for concepts that fuse ordinary, mundane items with a fantastical touch. In particular, you can provide good one-paragraph descriptions of concept images.".AsSystemMessage(),
Copy file name to clipboardExpand all lines: src/libs/tryAGI.OpenAI/AssistantClient.CreateRun.AsStream.cs
+36-27Lines changed: 36 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,15 @@ public partial class AssistantsClient
118
118
/// The ID of the [Model](/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.<br/>
/// Currently supported values are `low`, `medium`, and `high`. Reducing<br/>
126
+
/// reasoning effort can result in faster responses and fewer tokens used<br/>
127
+
/// on reasoning in a response.<br/>
128
+
/// Default Value: medium
129
+
/// </param>
121
130
/// <param name="instructions">
122
131
/// Overrides the [instructions](/docs/api-reference/assistants/createAssistant) of the assistant. This is useful for modifying the behavior on a per-run basis.
123
132
/// </param>
@@ -131,15 +140,20 @@ public partial class AssistantsClient
131
140
/// Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis.
132
141
/// </param>
133
142
/// <param name="metadata">
134
-
/// 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 maxium of 512 characters long.
143
+
/// Set of 16 key-value pairs that can be attached to an object. This can be<br/>
144
+
/// useful for storing additional information about the object in a structured<br/>
145
+
/// format, and querying for objects via API or the dashboard. <br/>
146
+
/// Keys are strings with a maximum length of 64 characters. Values are strings<br/>
147
+
/// with a maximum length of 512 characters.
135
148
/// </param>
136
149
/// <param name="temperature">
137
-
/// empty<br/>
150
+
/// 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.<br/>
138
151
/// Default Value: 1<br/>
139
152
/// Example: 1
140
153
/// </param>
141
154
/// <param name="topP">
142
-
/// empty<br/>
155
+
/// 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.<br/>
156
+
/// We generally recommend altering this or temperature but not both.<br/>
143
157
/// Default Value: 1<br/>
144
158
/// Example: 1
145
159
/// </param>
@@ -152,52 +166,49 @@ public partial class AssistantsClient
152
166
/// <param name="maxCompletionTokens">
153
167
/// The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info.
154
168
/// </param>
155
-
/// <param name="truncationStrategy">
156
-
/// Controls for how a thread will be truncated prior to the run. Use this to control the intial context window of the run.
157
-
/// </param>
158
-
/// <param name="toolChoice">
159
-
/// Controls which (if any) tool is called by the model.<br/>
160
-
/// `none` means the model will not call any tools and instead generates a message.<br/>
161
-
/// `auto` is the default value and means the model can pick between generating a message or calling one or more tools.<br/>
162
-
/// `required` means the model must call one or more tools before responding to the user.<br/>
163
-
/// Specifying a particular tool like `{"type": "file_search"}` or `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool.
164
-
/// </param>
169
+
/// <param name="truncationStrategy"></param>
170
+
/// <param name="toolChoice"></param>
165
171
/// <param name="parallelToolCalls">
166
-
/// Whether to enable [parallel function calling](/docs/guides/function-calling/parallel-function-calling) during tool use.
172
+
/// Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.
167
173
/// </param>
168
174
/// <param name="responseFormat">
169
-
/// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models/gpt-4o), [GPT-4 Turbo](/docs/models/gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.<br/>
170
-
/// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which guarantees the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).<br/>
171
-
/// Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the message the model generates is valid JSON.<br/>
175
+
/// Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.<br/>
176
+
/// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).<br/>
177
+
/// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.<br/>
172
178
/// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.
173
179
/// </param>
174
180
/// <param name="cancellationToken">The token to cancel the operation with</param>
0 commit comments