Skip to content

Commit ad1e097

Browse files
committed
Add missing documentation to ChatMessage
1 parent e8238c2 commit ad1e097

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/v1/resources/chat.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,13 @@ pub struct ChatCompletionTool {
141141
pub struct ChatMessage {
142142
/// The role of the author of this message.
143143
pub role: Role,
144-
#[serde(skip_serializing_if = "Option::is_none")]
145144
/// The content of the message.
145+
#[serde(skip_serializing_if = "Option::is_none")]
146146
pub content: Option<String>,
147147
/// The tool calls generated by the model.
148148
#[serde(skip_serializing_if = "Option::is_none")]
149149
pub tool_calls: Option<Vec<ToolCall>>,
150-
///
150+
/// An optional name for the participant. Provides the model information to differentiate between participants of the same role.
151151
#[serde(skip_serializing_if = "Option::is_none")]
152152
pub name: Option<String>,
153153
/// When responding to a tool call; provide the id of the tool call

0 commit comments

Comments
 (0)