Fix Buffer usage in github-copilot.ts - use atob()

This commit is contained in:
Mario Zechner 2025-12-28 11:15:26 +01:00
parent c10fc1e081
commit 481bc79f83

View file

@ -5,7 +5,7 @@
import { getModels } from "../../models.js";
import type { OAuthCredentials } from "./types.js";
const decode = (s: string) => Buffer.from(s, "base64").toString();
const decode = (s: string) => atob(s);
const CLIENT_ID = decode("SXYxLmI1MDdhMDhjODdlY2ZlOTg=");
const COPILOT_HEADERS = {