mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
types: add any type and validation for ToolFunction enum (#10166)
This commit is contained in:
parent
ccc8c6777b
commit
6747099d71
4 changed files with 71 additions and 10 deletions
|
@ -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"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue