mirror of
https://github.com/ollama/ollama.git
synced 2026-04-17 15:53:27 +02:00
also need to set type to omitempty to work
This commit is contained in:
@@ -337,7 +337,7 @@ func mapToTypeScriptType(jsonType string) string {
|
||||
}
|
||||
|
||||
type ToolFunctionParameters struct {
|
||||
Type string `json:"type"`
|
||||
Type string `json:"type,omitempty"`
|
||||
Defs any `json:"$defs,omitempty"`
|
||||
Items any `json:"items,omitempty"`
|
||||
Required []string `json:"required,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user