test(agents): align local marker auth expectation

This commit is contained in:
Peter Steinberger
2026-04-27 11:23:55 +01:00
parent f6ee2877e0
commit f820f89f14

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", async () => {
it("resolves custom named Ollama providers with explicit local marker auth as a local models marker", 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: "ollama-local",
source: "models.providers.ollama-remote (synthetic local key)",
apiKey: "custom-local",
source: "models.json (local marker)",
mode: "api-key",
});
});