objectiveai 0.1.4

ObjectiveAI SDK, definitions, and utilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Object type for streaming chat completion responses.

use serde::{Deserialize, Serialize};

/// The object type for streaming chat completion chunks.
#[derive(Debug, Clone, Copy, Serialize, Deserialize, Default)]
pub enum Object {
    /// A chat completion chunk object.
    #[serde(rename = "chat.completion.chunk")]
    #[default]
    ChatCompletionChunk,
}