mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 21:01:34 +00:00
15 lines
614 B
TypeScript
15 lines
614 B
TypeScript
import { buildCopilotIdeHeaders } from "openclaw/plugin-sdk/provider-auth";
|
|
|
|
// GitHub's current fine-grained PAT contract is the Copilot CLI identity.
|
|
// Keep this provider-owned instead of changing the legacy public SDK constant.
|
|
export const COPILOT_RUNTIME_INTEGRATION_ID = "copilot-developer-cli";
|
|
|
|
/** Build the static request identity shared by Copilot inference transports. */
|
|
export function buildCopilotRuntimeHeaders(): Record<string, string> {
|
|
return {
|
|
...buildCopilotIdeHeaders(),
|
|
"Copilot-Integration-Id": COPILOT_RUNTIME_INTEGRATION_ID,
|
|
"Openai-Organization": "github-copilot",
|
|
};
|
|
}
|