mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-28 12:17:28 +08:00
Release v1.0.2
This commit is contained in:
@@ -478,6 +478,9 @@ func validateProviderConfig(path string, p ProviderConfig) []error {
|
||||
if p.TimeoutSec <= 0 {
|
||||
errs = append(errs, fmt.Errorf("%s.timeout_sec must be > 0", path))
|
||||
}
|
||||
if p.MaxTokens < 0 {
|
||||
errs = append(errs, fmt.Errorf("%s.max_tokens must be >= 0", path))
|
||||
}
|
||||
switch authMode {
|
||||
case "", "bearer", "oauth", "none", "hybrid":
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user