Add wsl linter and fix

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-05-19 14:51:08 +04:00
parent eedfdcecc8
commit 9156d6a16a
882 changed files with 6068 additions and 574 deletions

View File

@@ -50,6 +50,7 @@ func (e *ErrRateLimit) Error() string {
if e.RetryAfter > 0 {
return fmt.Sprintf("rate limited (retry after %s): %v", e.RetryAfter, e.Err)
}
return fmt.Sprintf("rate limited: %v", e.Err)
}
@@ -59,6 +60,7 @@ func (e *ErrContextLength) Error() string {
if e.MaxTokens > 0 {
return fmt.Sprintf("context length exceeded (max %d tokens): %v", e.MaxTokens, e.Err)
}
return fmt.Sprintf("context length exceeded: %v", e.Err)
}