mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-10 15:57:04 +00:00
types: add any type and validation for ToolFunction enum (#10166)
This commit is contained in:
@@ -217,7 +217,7 @@ type ToolFunction struct {
|
||||
Properties map[string]struct {
|
||||
Type PropertyType `json:"type"`
|
||||
Description string `json:"description"`
|
||||
Enum []string `json:"enum,omitempty"`
|
||||
Enum []any `json:"enum,omitempty"`
|
||||
} `json:"properties"`
|
||||
} `json:"parameters"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user