MCPcopy Index your code
hub / github.com/anomalyco/opencode / headers

Function headers

packages/core/src/plugin/provider/openai.ts:191–193  ·  view source on GitHub ↗
(contentType: string)

Source from the content-addressed store, hash-verified

189} satisfies PluginInternal.Plugin<PluginInternal.Requirements | Scope.Scope>)
190
191function headers(contentType: string) {
192 return { "Content-Type": contentType, "User-Agent": `opencode/${InstallationVersion}` }
193}
194
195function exchange(code: string, redirect: string, pkce: Pkce) {
196 return request<TokenResponse>(`${issuer}/oauth/token`, {

Callers 3

openai.tsFile · 0.70
exchangeFunction · 0.70
refreshFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected