From ac2137eedb70117b5c2f97793f936308013389db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Cipriani=20Bandarra?= Date: Fri, 30 Jan 2026 19:39:40 +0000 Subject: [PATCH] Fix doc comments and attribute ordering in GenerateRequest Moved serde attributes on prompt and suffix to the conventional position after doc comments. Changed // to /// on images and format fields so they appear in generated documentation. --- src/types/generate.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/types/generate.rs b/src/types/generate.rs index 26de1a4..a943f5a 100644 --- a/src/types/generate.rs +++ b/src/types/generate.rs @@ -7,14 +7,14 @@ use crate::types::common::{Options, Think}; pub struct GenerateRequest { /// Model name pub model: String, - #[serde(skip_serializing_if = "Option::is_none")] /// Text for the model to generate a response from - pub prompt: Option, #[serde(skip_serializing_if = "Option::is_none")] + pub prompt: Option, /// Used for fill-in-the-middle models, text that appears after the user prompt and before the /// model response + #[serde(skip_serializing_if = "Option::is_none")] pub suffix: Option, /// System prompt for the model to generate a response from @@ -25,12 +25,12 @@ pub struct GenerateRequest { #[serde(skip_serializing_if = "Option::is_none")] pub stream: Option, - // Base64-encoded images for models that support image input + /// Base64-encoded images for models that support image input #[serde(skip_serializing_if = "Vec::is_empty")] pub images: Vec, - // Structured output format for the model to generate a response from. - // Supports either the string "json" or a JSON schema object + /// Structured output format for the model to generate a response from. + /// Supports either the string "json" or a JSON schema object #[serde(skip_serializing_if = "Option::is_none")] pub format: Option,