mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 10:26:53 +02:00
chore(all): replace instances of interface with any (#10067)
Both interface{} and any (which is just an alias for interface{} introduced in Go 1.18) represent the empty interface that all types satisfy.
This commit is contained in:
parent
4e415029b3
commit
9876c9faa4
19 changed files with 58 additions and 58 deletions
|
@ -268,7 +268,7 @@ func RunHandler(cmd *cobra.Command, args []string) error {
|
|||
opts := runOptions{
|
||||
Model: args[0],
|
||||
WordWrap: os.Getenv("TERM") == "xterm-256color",
|
||||
Options: map[string]interface{}{},
|
||||
Options: map[string]any{},
|
||||
}
|
||||
|
||||
format, err := cmd.Flags().GetString("format")
|
||||
|
@ -852,7 +852,7 @@ type runOptions struct {
|
|||
Format string
|
||||
System string
|
||||
Images []api.ImageData
|
||||
Options map[string]interface{}
|
||||
Options map[string]any
|
||||
MultiModal bool
|
||||
KeepAlive *api.Duration
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue