From 7dd4862a8997ce6f01018a76ad41bd4d8dbe217b Mon Sep 17 00:00:00 2001 From: nicole pardal <109545900+npardal@users.noreply.github.com> Date: Thu, 30 Oct 2025 17:12:33 -0700 Subject: [PATCH] embeddings: removed redundant TestAPIEmbeddings test (#12863) This PR removes a redundant test from TestAPIEmbeddings Contents of this test already exists in embed_test.go and model_arch_test.go --- integration/api_test.go | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/integration/api_test.go b/integration/api_test.go index 5d7acd9495..39eea39c06 100644 --- a/integration/api_test.go +++ b/integration/api_test.go @@ -381,30 +381,3 @@ func TestAPIShowModel(t *testing.T) { t.Errorf("%s missing modified_at: %#v", modelName, resp) } } - -func TestAPIEmbeddings(t *testing.T) { - ctx, cancel := context.WithTimeout(context.Background(), 1*time.Minute) - defer cancel() - client, _, cleanup := InitServerConnection(ctx, t) - defer cleanup() - req := api.EmbeddingRequest{ - Model: libraryEmbedModels[0], - Prompt: "why is the sky blue?", - Options: map[string]interface{}{ - "temperature": 0, - "seed": 123, - }, - } - - if err := PullIfMissing(ctx, client, req.Model); err != nil { - t.Fatalf("pull failed %s", err) - } - - resp, err := client.Embeddings(ctx, &req) - if err != nil { - t.Fatalf("embeddings call failed %s", err) - } - if len(resp.Embedding) == 0 { - t.Errorf("zero length embedding response") - } -}