mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-29 19:01:44 +00:00
fix(regression): align model picker with bundled compat
This commit is contained in:
@@ -144,6 +144,13 @@ describe("promptDefaultModel", () => {
|
||||
});
|
||||
|
||||
expect(runProviderPluginAuthMethod).toHaveBeenCalledOnce();
|
||||
expect(resolvePluginProviders).toHaveBeenCalledWith({
|
||||
config,
|
||||
workspaceDir: undefined,
|
||||
env: undefined,
|
||||
bundledProviderAllowlistCompat: true,
|
||||
bundledProviderVitestCompat: true,
|
||||
});
|
||||
expect(result.model).toBe("vllm/meta-llama/Meta-Llama-3-8B-Instruct");
|
||||
expect(result.config?.models?.providers?.vllm).toMatchObject({
|
||||
baseUrl: "http://127.0.0.1:8000/v1",
|
||||
|
||||
@@ -287,6 +287,8 @@ async function maybeHandleProviderPluginSelection(params: {
|
||||
config: params.cfg,
|
||||
workspaceDir: params.workspaceDir,
|
||||
env: params.env,
|
||||
bundledProviderAllowlistCompat: true,
|
||||
bundledProviderVitestCompat: true,
|
||||
});
|
||||
pluginResolution = pluginProviders.some(
|
||||
(provider) => normalizeProviderId(provider.id) === normalizeProviderId(params.selection),
|
||||
@@ -315,6 +317,8 @@ async function maybeHandleProviderPluginSelection(params: {
|
||||
config: params.cfg,
|
||||
workspaceDir: params.workspaceDir,
|
||||
env: params.env,
|
||||
bundledProviderAllowlistCompat: true,
|
||||
bundledProviderVitestCompat: true,
|
||||
});
|
||||
}
|
||||
const resolved = resolveProviderPluginChoice({
|
||||
|
||||
Reference in New Issue
Block a user