Skip to content

Commit 4192210

Browse files
authored
fix: make content not required in ChatCompletionRequestAssistantMessage (abetlen#1807)
1 parent 38fbd29 commit 4192210

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
@@ -214,7 +214,7 @@ class ChatCompletionRequestAssistantMessageFunctionCall(TypedDict):
214214

215215
class ChatCompletionRequestAssistantMessage(TypedDict):
216216
role: Literal["assistant"]
217-
content: Optional[str]
217+
content: NotRequired[str]
218218
tool_calls: NotRequired[ChatCompletionMessageToolCalls]
219219
function_call: NotRequired[
220220
ChatCompletionRequestAssistantMessageFunctionCall

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy