Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyRules ¶
ApplyRules evaluates each transform rule against the request body and applies matching mutations. Returns the (possibly modified) body, any extra headers to add to the upstream request, and an error if JSON handling fails.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy is a local HTTP server that forwards Anthropic API requests to a provider.
func NewProxy ¶
func NewProxy(providerURL, authToken, oauthToken string, rules []config.TransformRule) *Proxy
NewProxy creates a new proxy that forwards requests to providerURL.
Click to show internal directories.
Click to hide internal directories.