openai_struct/models/
chat_completion_request_developer_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/// pub ChatCompletionRequestDeveloperMessage : Developer-provided instructions that the model should follow, regardless of messages sent by the user. With o1 models and newer, `developer` messages replace the previous `system` messages.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct ChatCompletionRequestDeveloperMessage {
18    /// The contents of the developer message.
19    #[serde(rename = "content")]
20    pub content: Value,
21    /// An optional name for the participant. Provides the model information to differentiate between participants of the same role.
22    #[serde(rename = "name")]
23    pub name: Option<String>,
24    /// The role of the messages author, in this case `developer`.
25    #[serde(rename = "role")]
26    pub role: String,
27}