Feat Support tools and tools choice new fileds (#526)

* feat: support tools and tools choice new fileds

* fix: use value not pointers
This commit is contained in:
Simone Vellei
2023-11-07 16:53:24 +01:00
committed by GitHub
parent 3063e676bf
commit 1ad6b6f53d
2 changed files with 38 additions and 4 deletions

View File

@@ -9,6 +9,7 @@ type ChatCompletionStreamChoiceDelta struct {
Content string `json:"content,omitempty"`
Role string `json:"role,omitempty"`
FunctionCall *FunctionCall `json:"function_call,omitempty"`
ToolCalls []ToolCall `json:"tool_calls,omitempty"`
}
type ChatCompletionStreamChoice struct {