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
|
@ -22,7 +22,7 @@ func TestOrcaMiniBlueSky(t *testing.T) {
|
|||
Model: "orca-mini",
|
||||
Prompt: "why is the sky blue?",
|
||||
Stream: &stream,
|
||||
Options: map[string]interface{}{
|
||||
Options: map[string]any{
|
||||
"temperature": 0,
|
||||
"seed": 123,
|
||||
},
|
||||
|
@ -39,7 +39,7 @@ func TestUnicode(t *testing.T) {
|
|||
Model: "deepseek-coder-v2:16b-lite-instruct-q2_K",
|
||||
Prompt: "天空为什么是蓝色的?",
|
||||
Stream: &stream,
|
||||
Options: map[string]interface{}{
|
||||
Options: map[string]any{
|
||||
"temperature": 0,
|
||||
"seed": 123,
|
||||
// Workaround deepseek context shifting bug
|
||||
|
@ -61,7 +61,7 @@ func TestExtendedUnicodeOutput(t *testing.T) {
|
|||
Model: "gemma2:2b",
|
||||
Prompt: "Output some smily face emoji",
|
||||
Stream: &stream,
|
||||
Options: map[string]interface{}{
|
||||
Options: map[string]any{
|
||||
"temperature": 0,
|
||||
"seed": 123,
|
||||
},
|
||||
|
@ -96,7 +96,7 @@ func TestUnicodeModelDir(t *testing.T) {
|
|||
Model: "orca-mini",
|
||||
Prompt: "why is the sky blue?",
|
||||
Stream: &stream,
|
||||
Options: map[string]interface{}{
|
||||
Options: map[string]any{
|
||||
"temperature": 0,
|
||||
"seed": 123,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue