MCPcopy Index your code
hub / github.com/coder/coder / IsActorHeader

Function IsActorHeader

aibridge/intercept/actor_headers.go:25–27  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

23}
24
25func IsActorHeader(name string) bool {
26 return strings.HasPrefix(strings.ToLower(name), strings.ToLower(prefix))
27}
28
29// ActorHeadersAsOpenAIOpts produces a slice of headers using OpenAI's RequestOption type.
30func ActorHeadersAsOpenAIOpts(actor *context.Actor) []oai_option.RequestOption {

Callers 2

TestActorHeadersFunction · 0.92
BuildUpstreamHeadersFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestActorHeadersFunction · 0.74