MCPcopy Index your code
hub / github.com/the-open-agent/openagent / setAuth

Method setAuth

model/opencode.go:426–430  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

424}
425
426func (p *OpenCodeProvider) setAuth(req *http.Request) {
427 if p.apiKey != "" {
428 req.SetBasicAuth("opencode", p.apiKey)
429 }
430}

Callers 4

createSessionMethod · 0.95
deleteSessionMethod · 0.95
sendMessageAsyncMethod · 0.95
readSSEStreamMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected