MCPcopy Create free account
hub / github.com/coder/aibridge / InjectAuthHeader

Method InjectAuthHeader

provider/copilot.go:116–116  ·  view source on GitHub ↗

InjectAuthHeader is a no-op for Copilot. Copilot uses per-user tokens passed in the original Authorization header, rather than a global key configured at the provider level. The original Authorization header flows through untouched from the client.

(_ *http.Header)

Source from the content-addressed store, hash-verified

114// rather than a global key configured at the provider level.
115// The original Authorization header flows through untouched from the client.
116func (*Copilot) InjectAuthHeader(_ *http.Header) {}
117
118func (p *Copilot) CircuitBreakerConfig() *config.CircuitBreaker {
119 return p.circuitBreaker

Callers 1

Calls

no outgoing calls

Tested by 1