Release v1.0.2

This commit is contained in:
lpf
2026-04-08 15:25:28 +08:00
parent ce2263ac8c
commit a9169c66ff
15 changed files with 1670 additions and 450 deletions

View File

@@ -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: