We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6689d71 commit 428b64eCopy full SHA for 428b64e
llama_cpp/llama_types.py
@@ -58,9 +58,11 @@ class Completion(TypedDict):
58
59
60
class ChatCompletionMessage(TypedDict):
61
- role: Literal["assistant", "user", "system"]
62
- content: str
+ role: Literal["assistant", "user", "system", "function"]
+ content: Optional[str]
63
user: NotRequired[str]
64
+ name: NotRequired[str]
65
+ function_call: NotRequired[str]
66
67
68
class ChatCompletionFunction(TypedDict):
@@ -71,6 +73,7 @@ class ChatCompletionFunction(TypedDict):
71
73
72
74
class ChatCompletionFunctionCall(TypedDict):
75
name: str
76
+ arguments: str
77
78
79
class ChatCompletionChoice(TypedDict):
0 commit comments