mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
bug fix for security initial cause can't save model in launcher (#1952)
This commit is contained in:
@@ -1946,6 +1946,7 @@ func SaveConfig(path string, cfg *Config) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
logger.Infof("saving config to %s", path)
|
||||
return fileutil.WriteFileAtomic(path, data, 0o600)
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ type SecurityConfig struct {
|
||||
// Model API keys. Map key is model_name, can include suffix like "abc:0", "abc:1"
|
||||
// for load balancing with same model_name. The suffix ":N" is used to distinguish
|
||||
// multiple configs that share the same base model_name.
|
||||
ModelList map[string]ModelSecurityEntry `yaml:"model_list,omitempty"`
|
||||
ModelList map[string]ModelSecurityEntry `yaml:"model_list"`
|
||||
|
||||
// Channel tokens/secrets
|
||||
Channels *ChannelsSecurity `yaml:"channels,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user