Documentation
¶
Overview ¶
Package cc provides the Claude Code CLI LLM API profile.
Index ¶
- type Handler
- func (h *Handler) MatchLLMApi(r *http.Request) bool
- func (h *Handler) Name() string
- func (h *Handler) PrepareLLMApiRequest(r *http.Request) (*dispatcher.PreparedLLMApiRequest, llmroutepkg.RequestRequirements, error)
- func (h *Handler) ServeLLMApi(w http.ResponseWriter, r *http.Request, prov provider.Provider, ...) error
- func (h *Handler) SetLogger(logger *zap.Logger)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles Claude Code CLI requests. The wire format is Anthropic Messages API compatible, with the token-counting shim Claude Code expects.
func NewHandler ¶
NewHandler creates a Claude Code CLI handler.
func (*Handler) PrepareLLMApiRequest ¶ added in v0.5.1
func (h *Handler) PrepareLLMApiRequest(r *http.Request) (*dispatcher.PreparedLLMApiRequest, llmroutepkg.RequestRequirements, error)
func (*Handler) ServeLLMApi ¶ added in v0.5.1
func (h *Handler) ServeLLMApi(w http.ResponseWriter, r *http.Request, prov provider.Provider, prepared *dispatcher.PreparedLLMApiRequest) error
Click to show internal directories.
Click to hide internal directories.