mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-28 08:22:12 +00:00
fix(gateway): point model override error to config docs
Summary: - Point allowModelOverride denial errors to the current configuration reference anchor. Verification: - Source check: docs/gateway/configuration-reference.md documents plugins.entries.<id>.subagent.allowModelOverride. - PR CI: gateway tests and required shards succeeded.
This commit is contained in:
@@ -968,7 +968,7 @@ describe("loadGatewayPlugins", () => {
|
||||
}),
|
||||
),
|
||||
).rejects.toThrow(
|
||||
'plugin "voice-call" is not trusted for fallback provider/model override requests. See https://docs.openclaw.ai/tools/plugin#runtime-helpers and search for: plugins.entries.<id>.subagent.allowModelOverride',
|
||||
'plugin "voice-call" is not trusted for fallback provider/model override requests. See https://docs.openclaw.ai/gateway/configuration-reference#plugins and search for: plugins.entries.<id>.subagent.allowModelOverride',
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -188,7 +188,7 @@ function authorizeFallbackModelOverride(params: {
|
||||
allowed: false,
|
||||
reason:
|
||||
`plugin "${pluginId}" is not trusted for fallback provider/model override requests. ` +
|
||||
"See https://docs.openclaw.ai/tools/plugin#runtime-helpers and search for: " +
|
||||
"See https://docs.openclaw.ai/gateway/configuration-reference#plugins and search for: " +
|
||||
"plugins.entries.<id>.subagent.allowModelOverride",
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user