Skip to content

Commit

Permalink
support reasoning_content
Browse files Browse the repository at this point in the history
  • Loading branch information
Jintao-Huang committed Feb 18, 2025
1 parent 3a41cca commit b483672
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions swift/llm/infer/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ class ChatCompletionMessageToolCall:
class ChatMessage:
role: Literal['system', 'user', 'assistant']
content: Union[str, List[Dict[str, Any]]]
reasoning_content: Optional[str] = None
tool_calls: Optional[List[ChatCompletionMessageToolCall]] = None


Expand Down Expand Up @@ -278,6 +279,7 @@ class CompletionResponse:
class DeltaMessage:
role: Literal['system', 'user', 'assistant', None] = None
content: Optional[str] = None
reasoning_content: Optional[str] = None
tool_calls: Optional[List[ChatCompletionMessageToolCall]] = None


Expand Down

0 comments on commit b483672

Please sign in to comment.