openai_struct/models/
chat_completion_stream_response_delta.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/// pub ChatCompletionStreamResponseDelta : A chat completion delta generated by streamed model responses.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct ChatCompletionStreamResponseDelta {
18    /// The contents of the chunk message.
19    #[serde(rename = "content")]
20    pub content: Option<String>,
21    #[serde(rename = "function_call")]
22    pub function_call: Option<crate::models::ChatCompletionStreamResponseDeltaFunctionCall>,
23    /// The refusal message generated by the model.
24    #[serde(rename = "refusal")]
25    pub refusal: Option<String>,
26    /// The role of the author of this message.
27    #[serde(rename = "role")]
28    pub role: Option<String>,
29    #[serde(rename = "tool_calls")]
30    pub tool_calls: Option<Vec<crate::models::ChatCompletionMessageToolCallChunk>>,
31}