From edff2b7d552c48250b688ecf9415b61a7bb19af7 Mon Sep 17 00:00:00 2001 From: Sawyer Date: Thu, 17 Sep 2026 18:17:56 -0700 Subject: [PATCH] chore(env): drop the stale EMBED_API_STYLE option (CL-8361) @corbits/embedding has no such switch; it speaks one OpenAI-shaped /v1/embeddings wire format that Ollama, TEI, vLLM, and OpenAI all serve. Removes the line and comment from .env.example and every EMBED_API_STYLE reference in scripts/setup-memory.ts. --- .env.example | 1 - scripts/setup-memory.ts | 5 ----- 2 files changed, 6 deletions(-) diff --git a/.env.example b/.env.example index d5f8163671..e2227664fd 100644 --- a/.env.example +++ b/.env.example @@ -34,7 +34,6 @@ PRINCIPAL_KEY_ENCRYPTION_KEY=111111111111111111111111111111111111111111111111111 # Memory plane (@corbits/memory). Run `bun run setup:memory` to fill these. # EMBED_BASE_URL=http://localhost:11434 # EMBED_MODEL=nomic-embed-text -# EMBED_API_STYLE=ollama # openai | tei | ollama # EMBED_API_KEY= # EMBED_TIMEOUT_MS= # DB_POOL_MAX=8 diff --git a/scripts/setup-memory.ts b/scripts/setup-memory.ts index e68ce91b07..da6e86437c 100644 --- a/scripts/setup-memory.ts +++ b/scripts/setup-memory.ts @@ -34,7 +34,6 @@ export function planEmbedding(probe: CapabilityProbe): SetupPlan { env: { EMBED_BASE_URL: "http://localhost:11434", EMBED_MODEL: "nomic-embed-text", - EMBED_API_STYLE: "ollama", }, instructions: [ "Native Ollama found on this machine — use it directly, no container needed.", @@ -43,7 +42,6 @@ export function planEmbedding(probe: CapabilityProbe): SetupPlan { "Then add to .env:", " EMBED_BASE_URL=http://localhost:11434", " EMBED_MODEL=nomic-embed-text", - " EMBED_API_STYLE=ollama", ], }; } @@ -53,7 +51,6 @@ export function planEmbedding(probe: CapabilityProbe): SetupPlan { env: { EMBED_BASE_URL: "http://localhost:11434", EMBED_MODEL: "nomic-embed-text", - EMBED_API_STYLE: "ollama", }, instructions: [ "No native Ollama on PATH, but Docker is available — brew install ollama is", @@ -63,7 +60,6 @@ export function planEmbedding(probe: CapabilityProbe): SetupPlan { "Then add to .env:", " EMBED_BASE_URL=http://localhost:11434", " EMBED_MODEL=nomic-embed-text", - " EMBED_API_STYLE=ollama", ], }; } @@ -77,7 +73,6 @@ export function planEmbedding(probe: CapabilityProbe): SetupPlan { "server running elsewhere. Add to .env:", " EMBED_BASE_URL=", " EMBED_MODEL=", - " EMBED_API_STYLE=", " EMBED_API_KEY=", "See .env.example for worked examples of each.", ],