mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-15 16:46:30 +00:00
fix: preserve Ollama local marker auth
This commit is contained in:
parent
a421e0be84
commit
0dd2844991
2 changed files with 3 additions and 2 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue