dshagent

package
v0.9.78 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ProviderID  = "csghub_lite"
	ProviderAPI = "openai-completions"
)

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir() (string, error)

ConfigDir returns the dsh data directory.

func ConfigPath

func ConfigPath() (string, error)

ConfigPath is an alias for SettingsPath for interface compatibility.

func CredentialsPath

func CredentialsPath() (string, error)

CredentialsPath returns the path to dsh .credentials.yaml.

func ModelAlias

func ModelAlias(modelID string) string

ModelAlias sanitizes a model ID into a valid key for dsh's model entries. dsh looks up models by their id, so the --model flag and default_model must use the raw model ID (dsh does not require aliasing like kimi-code).

func SettingsPath

func SettingsPath() (string, error)

SettingsPath returns the path to dsh settings.yaml.

func SyncConfig

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

SyncConfig writes DeepSeek Harness configuration to ~/.dsh/settings.yaml so subsequent launches use csghub-lite as the model provider. dsh reads settings.yaml for providers and models; the credentials are stored separately in .credentials.yaml as env-var references, never inline.

Types

This section is empty.

Jump to

Keyboard shortcuts

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