Skip to content

Commit 17da8fb

Browse files
committed
Add missing tool_calls finish_reason
1 parent 770df34 commit 17da8fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama_cpp/llama_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class ChatCompletionStreamResponseChoice(TypedDict):
131131
delta: Union[
132132
ChatCompletionStreamResponseDelta, ChatCompletionStreamResponseDeltaEmpty
133133
]
134-
finish_reason: Optional[Literal["stop", "length", "function_call"]]
134+
finish_reason: Optional[Literal["stop", "length", "tool_calls", "function_call"]]
135135

136136

137137
class CreateChatCompletionStreamResponse(TypedDict):

0 commit comments

Comments
 (0)