fix(model): claw-x header (#198)

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Haze <hazeone@users.noreply.github.com>
This commit is contained in:
Haze
2026-02-26 22:57:59 +08:00
committed by GitHub
Unverified
parent 2a50aea448
commit 87616b4250
4 changed files with 21 additions and 13 deletions

View File

@@ -878,6 +878,7 @@ function registerProviderHandlers(gatewayManager: GatewayManager): void {
baseUrl: config.baseUrl || meta?.baseUrl,
api,
apiKeyEnv: meta?.apiKeyEnv,
headers: meta?.headers,
});
if (config.type === 'custom' || config.type === 'ollama') {
@@ -1003,6 +1004,7 @@ function registerProviderHandlers(gatewayManager: GatewayManager): void {
baseUrl: nextConfig.baseUrl || meta?.baseUrl,
api,
apiKeyEnv: meta?.apiKeyEnv,
headers: meta?.headers,
});
if (nextConfig.type === 'custom' || nextConfig.type === 'ollama') {