Skip to content

Commit 7203770

Browse files
authored
feat: added function call info to chat completions (#390)
1 parent 68f9ef9 commit 7203770

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

chat_stream.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ import (
88
)
99

1010
type ChatCompletionStreamChoiceDelta struct {
11-
Content string `json:"content,omitempty"`
12-
Role string `json:"role,omitempty"`
11+
Content string `json:"content,omitempty"`
12+
Role string `json:"role,omitempty"`
13+
FunctionCall *FunctionCall `json:"function_call,omitempty"`
1314
}
1415

1516
type ChatCompletionStreamChoice struct {

0 commit comments

Comments
 (0)