ocreviewagent

package
v0.9.63 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderID      = "csghub-lite"
	DefaultLanguage = "Chinese"
)

Variables

View Source
var UnsetEnvKeys = []string{
	"OCR_LLM_URL",
	"OCR_LLM_TOKEN",
	"OCR_LLM_MODEL",
	"OCR_LLM_AUTH_HEADER",
	"OCR_LLM_EXTRA_HEADERS",
	"OCR_USE_ANTHROPIC",
	"ANTHROPIC_BASE_URL",
	"ANTHROPIC_AUTH_TOKEN",
	"ANTHROPIC_MODEL",
	"ANTHROPIC_API_KEY",
}

Functions

func ConfigDir

func ConfigDir() (string, error)

func DefaultArgs

func DefaultArgs(args []string) []string

func EnvOverrides

func EnvOverrides(storageRoot string) map[string]string

func HomeDir

func HomeDir(storageRoot string) string

func SyncConfig

func SyncConfig(storageRoot, serverURL, apiKey, selectedModelID string, models []api.ModelInfo) (string, error)

SyncConfig writes Open Code Review config into the official user config path so direct `ocr` invocations and csghub-lite launches share the same provider.

func TempDir

func TempDir(storageRoot string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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