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
/// 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.
195
+
#[serde(skip_serializing_if = "Option::is_none")]
195
196
pubinstructions:Option<String>,
196
197
197
198
/// 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.
199
+
#[serde(skip_serializing_if = "Option::is_none")]
198
200
pubadditional_instructions:Option<String>,
199
201
200
202
/// Adds additional messages to the thread before creating the run.
/// The sampling temperature used for this run. If not set, defaults to 1.
213
+
#[serde(skip_serializing_if = "Option::is_none")]
209
214
pubtemperature:Option<f32>,
210
215
211
216
/// 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.
212
217
///
213
218
/// We generally recommend altering this or temperature but not both.
219
+
#[serde(skip_serializing_if = "Option::is_none")]
214
220
pubtop_p:Option<f32>,
215
221
216
222
/// If `true`, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a `data: [DONE]` message.
223
+
#[serde(skip_serializing_if = "Option::is_none")]
217
224
pubstream:Option<bool>,
218
225
219
226
/// The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info.
227
+
#[serde(skip_serializing_if = "Option::is_none")]
220
228
pubmax_prompt_tokens:Option<u32>,
221
229
222
230
/// 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.
231
+
#[serde(skip_serializing_if = "Option::is_none")]
223
232
pubmax_completion_tokens:Option<u32>,
224
233
225
234
/// Controls for how a thread will be truncated prior to the run. Use this to control the intial context window of the run.
0 commit comments