cc

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package cc provides the Claude Code CLI LLM API profile.

Index

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

func NewHandler(_ provider.Provider) *Handler

NewHandler creates a Claude Code CLI handler.

func (*Handler) MatchLLMApi added in v0.5.1

func (h *Handler) MatchLLMApi(r *http.Request) bool

func (*Handler) Name added in v0.5.1

func (h *Handler) Name() string

func (*Handler) PrepareLLMApiRequest added in v0.5.1

func (*Handler) ServeLLMApi added in v0.5.1

func (*Handler) SetLogger added in v0.5.1

func (h *Handler) SetLogger(logger *zap.Logger)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL