openai_struct/models/
fine_tune_chat_completion_request_assistant_message.rs

1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11#[allow(unused_imports)]
12use serde_json::Value;
13
14#[derive(Debug, Serialize, Deserialize)]
15pub struct FineTuneChatCompletionRequestAssistantMessage {
16    #[serde(rename = "audio")]
17    pub audio: Option<crate::models::ChatCompletionRequestAssistantMessageAudio>,
18    /// The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
19    #[serde(rename = "content")]
20    pub content: Option<Value>,
21    #[serde(rename = "function_call")]
22    pub function_call: Option<crate::models::ChatCompletionRequestAssistantMessageFunctionCall>,
23    /// An optional name for the participant. Provides the model information to differentiate between participants of the same role.
24    #[serde(rename = "name")]
25    pub name: Option<String>,
26    /// The refusal message by the assistant.
27    #[serde(rename = "refusal")]
28    pub refusal: Option<String>,
29    /// The role of the messages author, in this case `assistant`.
30    #[serde(rename = "role")]
31    pub role: String,
32    #[serde(rename = "tool_calls")]
33    pub tool_calls: Option<crate::models::ChatCompletionMessageToolCalls>,
34}