fix(cline): use workos auth token shape

Made-with: Cursor
This commit is contained in:
apeltekci authored and decolua committed 2026-03-09 16:21:29 +07:00
1 parent 89405125e6
commit 29f3e1894e
4 files changed
+50 -13

No files matched your search

+5
View File
@@ -1,4 +1,5 @@
import { PROVIDERS } from "../config/constants.js";
import { buildClineHeaders } from "../../src/shared/utils/clineAuth.js";
const OPENAI_COMPATIBLE_PREFIX = "openai-compatible-";
const OPENAI_COMPATIBLE_DEFAULTS = {
@@ -285,6 +286,10 @@ export function buildProviderHeaders(provider, credentials, stream = true, body
case "openrouter":
headers["Authorization"] = `Bearer ${credentials.apiKey || credentials.accessToken}`;
break;
case "cline":
Object.assign(headers, buildClineHeaders(credentials.apiKey || credentials.accessToken));
break;
case "glm":
case "kimi":