Versions in this module Expand all Collapse all v0 v0.4.0 Sep 3, 2026 Changes in this version + func RewriteModelAndThinking(b []byte, upstream string, thinkingBudget int) ([]byte, error) + type ThinkingConfig struct + BudgetTokens int + Type string v0.3.0 Sep 2, 2026 Changes in this version + func AnthropicToOpenAIChat(req *AnthropicMessagesRequest, publicModel string) ([]byte, error) + func NewOpenAISSEToAnthropicReader(src io.ReadCloser, requestedModel string) io.ReadCloser + func NewSSEModelRewriteReader(src io.ReadCloser, upstreamModel, alias string) io.ReadCloser + func OpenAIResponseToAnthropic(body []byte, requestedModel string) ([]byte, error) + func RewriteModel(b []byte, upstream string) ([]byte, error) + type AnthropicMessage struct + Content json.RawMessage + Role string + type AnthropicMessagesRequest struct + MaxTokens int + Messages []AnthropicMessage + Model string + Stream bool + System json.RawMessage + Temperature *float64 + Tools []AnthropicTool + TopP *float64 + func ParseAnthropicMessages(b []byte) (*AnthropicMessagesRequest, error) + type AnthropicTool struct + Description string + InputSchema json.RawMessage + Name string + type ChatMetadata struct + Metadata map[string]any + Model string + Stream bool + User string + func ParseChat(b []byte) (ChatMetadata, error) + type EndpointMetadata = ChatMetadata + func ParseEndpoint(b []byte) (EndpointMetadata, error) v0.2.0 Aug 20, 2026