Skip to content

Commit 0d02289

Browse files
authored
Merge pull request #7 from WqyJh/feat-tool
feat: change tools.parameters to any
2 parents dda8110 + be6852a commit 0d02289

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

types.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ package openairt
22

33
import (
44
"encoding/json"
5-
6-
"github.com/sashabaranov/go-openai/jsonschema"
75
)
86

97
type Voice string
@@ -127,10 +125,10 @@ type InputAudioTranscription struct {
127125
}
128126

129127
type Tool struct {
130-
Type ToolType `json:"type"`
131-
Name string `json:"name"`
132-
Description string `json:"description"`
133-
Parameters jsonschema.Definition `json:"parameters"`
128+
Type ToolType `json:"type"`
129+
Name string `json:"name"`
130+
Description string `json:"description"`
131+
Parameters any `json:"parameters"`
134132
}
135133

136134
type MessageItemType string

0 commit comments

Comments
 (0)