Skip to content

Commit 22d9c55

Browse files
authored
Add reasoning field in chat completion output (#3338)
1 parent 6378f83 commit 22d9c55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/huggingface_hub/inference/_generated/types/chat_completion.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ class ChatCompletionOutputToolCall(BaseInferenceType):
239239
class ChatCompletionOutputMessage(BaseInferenceType):
240240
role: str
241241
content: Optional[str] = None
242+
reasoning: Optional[str] = None
242243
tool_call_id: Optional[str] = None
243244
tool_calls: Optional[List[ChatCompletionOutputToolCall]] = None
244245

@@ -292,6 +293,7 @@ class ChatCompletionStreamOutputDeltaToolCall(BaseInferenceType):
292293
class ChatCompletionStreamOutputDelta(BaseInferenceType):
293294
role: str
294295
content: Optional[str] = None
296+
reasoning: Optional[str] = None
295297
tool_call_id: Optional[str] = None
296298
tool_calls: Optional[List[ChatCompletionStreamOutputDeltaToolCall]] = None
297299

0 commit comments

Comments
 (0)