test: align auth and config help expectations

This commit is contained in:
Peter Steinberger
2026-04-27 11:52:52 +01:00
parent 4f7498f6df
commit 583f32f56f

View File

@@ -888,7 +888,7 @@ describe("resolveApiKeyForProvider synthetic local auth for custom providers
).rejects.toThrow("No API key found");
});
it("resolves custom named Ollama providers with explicit local marker auth as a local models marker", async () => {
it("preserves custom named Ollama providers with explicit local marker auth", async () => {
const auth = await resolveApiKeyForProvider({
provider: "ollama-remote",
cfg: {
@@ -917,8 +917,8 @@ describe("resolveApiKeyForProvider synthetic local auth for custom providers
});
expect(auth).toMatchObject({
apiKey: "custom-local",
source: "models.json (local marker)",
apiKey: "ollama-local",
source: "models.providers.ollama-remote (synthetic local key)",
mode: "api-key",
});
});