mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:00:43 +00:00
test: align auth and config help expectations
This commit is contained in:
@@ -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",
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user