-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Copilot SDK version 0.2.0
Language tested: .net (c#)
When using BYOK, Type = Anthropic
SessionConfig.Provider.BearerToken is not sent on the llm request, only the ApiKey is sent
If you attempt to omit the ApiKey (tried to see if it would send Bearer in that case), you get this error:
Anthropic API key is required
We use a proxy server, that requires a bearer auth token, looks up the apikey, and proxies the call to the actual model server with the apikey.
This works fine with provider.Type openai but not anthropic. In anthropic mode the bearer token is never passed.
Custom headers should also be supported (generic custom headers maybe could enable a workaround for this, we could set Authorization), we use with the proxy to track what scenario the call is attached to with a custom header.