Skip to content

Commit

Permalink
fix: use value not pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
henomis committed Nov 7, 2023
1 parent 104fabc commit 55a6469
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,13 @@ const (
)

type Tool struct {
Type ToolType `json:"type"`
// Function will be filled only if Type is ToolTypeFunction.
Function *FunctionDefinition `json:"function,omitempty"`
Type ToolType `json:"type"`
Function FunctionDefinition `json:"function,omitempty"`
}

type ToolChoiche struct {
Type ToolType `json:"type"`
// Function will be filled only if Type is ToolTypeFunction.
Function *ToolFunction `json:"function,omitempty"`
Type ToolType `json:"type"`
Function ToolFunction `json:"function,omitempty"`
}

type ToolFunction struct {
Expand Down

0 comments on commit 55a6469

Please sign in to comment.