mirror of
https://github.com/ollama/ollama.git
synced 2026-04-21 16:25:42 +02:00
modernize
This commit is contained in:
@@ -68,7 +68,7 @@ func TestEmbeddingsMiddleware_EncodingFormats(t *testing.T) {
|
||||
|
||||
switch tc.expectType {
|
||||
case "array":
|
||||
if _, ok := result.Data[0].Embedding.([]interface{}); !ok {
|
||||
if _, ok := result.Data[0].Embedding.([]any); !ok {
|
||||
t.Errorf("expected array, got %T", result.Data[0].Embedding)
|
||||
}
|
||||
case "string":
|
||||
|
||||
Reference in New Issue
Block a user