Documentation
¶
Index ¶
- Constants
- func ConfigDir() (string, error)
- func ConfigPath() (string, error)
- func ContextWindowForModel(item api.ModelInfo, localFallback, remoteFallback int64) int64
- func IsManagedConfig() bool
- func IsManagedConfigData(data []byte) bool
- func LookupContextWindow(modelIDs ...string) (int64, bool)
- func RemoteDefaultContextWindow(fallback int64) int64
- func RemoveManagedConfig() error
- func SyncConfig(serverURL, apiKey, selectedModelID string, models []api.ModelInfo) error
Constants ¶
View Source
const ( DefaultLocalContextWindow int64 = 8192 DefaultRemoteContextWindowFallback int64 = 200000 )
View Source
const (
ProviderID = "csghub_lite"
)
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
ConfigPath returns the path to Codex config.toml.
func ContextWindowForModel ¶
func IsManagedConfig ¶ added in v0.9.25
func IsManagedConfig() bool
IsManagedConfig reports whether the live Codex config currently selects the provider owned by csghub-lite.
func IsManagedConfigData ¶ added in v0.9.25
func LookupContextWindow ¶
func RemoveManagedConfig ¶ added in v0.9.25
func RemoveManagedConfig() error
RemoveManagedConfig removes only fields owned by legacy csghub-lite integrations. It is used when no pre-switch snapshot exists.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.