Documentation
¶
Overview ¶
Package proxy implements the LLM gateway localhost reverse proxy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy is a localhost reverse proxy that strips incoming Authorization headers and injects fresh OIDC tokens before forwarding to the LLM gateway.
func New ¶
func New(cfg *llm.Config, ts TokenSource) (*Proxy, error)
New creates a Proxy and binds the TCP listener immediately so that Addr() returns the correct address before Start is called. Returns an error if GatewayURL is unparsable, the listen address is not loopback, or the port is already in use.
Click to show internal directories.
Click to hide internal directories.