Skip to content

Commit 41c2085

Browse files
committed
fix: xai doesnt return name in ResponseFormatJsonSchema
1 parent 9f687a5 commit 41c2085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

async-openai/src/types/shared/response_format.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub struct ResponseFormatJsonSchema {
1919
#[serde(skip_serializing_if = "Option::is_none")]
2020
pub description: Option<String>,
2121
/// The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
22-
pub name: String,
22+
pub name: Option<String>,
2323
/// The schema for the response format, described as a JSON Schema object.
2424
/// Learn how to build JSON schemas [here](https://json-schema.org/).
2525
#[serde(skip_serializing_if = "Option::is_none")]

0 commit comments

Comments
 (0)