mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:00:43 +00:00
fix: preserve Ollama local marker auth
This commit is contained in:
@@ -175,6 +175,7 @@ export function resolveUsableCustomProviderApiKey(params: {
|
||||
if (
|
||||
customProviderConfig &&
|
||||
isCustomLocalProviderConfig(customProviderConfig) &&
|
||||
customProviderConfig.api === "openai-completions" &&
|
||||
customProviderConfig.baseUrl &&
|
||||
isLocalBaseUrl(customProviderConfig.baseUrl)
|
||||
) {
|
||||
|
||||
@@ -132,11 +132,11 @@ describe("plugin activation boundary", () => {
|
||||
const staticNormalize = { allowPluginNormalization: false };
|
||||
expect(normalizeModelRef("google", "gemini-3.1-pro", staticNormalize)).toEqual({
|
||||
provider: "google",
|
||||
model: "gemini-3.1-pro",
|
||||
model: "gemini-3.1-pro-preview",
|
||||
});
|
||||
expect(normalizeModelRef("xai", "grok-4-fast-reasoning", staticNormalize)).toEqual({
|
||||
provider: "xai",
|
||||
model: "grok-4-fast-reasoning",
|
||||
model: "grok-4-fast",
|
||||
});
|
||||
expect(loadBundledPluginPublicSurfaceModuleSync).not.toHaveBeenCalled();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user