Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 428b64e

Browse files
committed
Update llama_types
1 parent 6689d71 commit 428b64e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

llama_cpp/llama_types.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ class Completion(TypedDict):
5858

5959

6060
class ChatCompletionMessage(TypedDict):
61-
role: Literal["assistant", "user", "system"]
62-
content: str
61+
role: Literal["assistant", "user", "system", "function"]
62+
content: Optional[str]
6363
user: NotRequired[str]
64+
name: NotRequired[str]
65+
function_call: NotRequired[str]
6466

6567

6668
class ChatCompletionFunction(TypedDict):
@@ -71,6 +73,7 @@ class ChatCompletionFunction(TypedDict):
7173

7274
class ChatCompletionFunctionCall(TypedDict):
7375
name: str
76+
arguments: str
7477

7578

7679
class ChatCompletionChoice(TypedDict):

0 commit comments

Comments
 (0)