Merge pull request #173 from is-Xiaoen/fix/code-review-bugs-116

fix: resolve multiple bugs from code review #116
This commit is contained in:
Meng Zhuo
2026-02-15 09:42:26 +08:00
committed by GitHub
5 changed files with 103 additions and 10 deletions

View File

@@ -15,6 +15,7 @@ import (
"net/http"
"net/url"
"strings"
"time"
"github.com/sipeed/picoclaw/pkg/auth"
"github.com/sipeed/picoclaw/pkg/config"
@@ -28,7 +29,7 @@ type HTTPProvider struct {
func NewHTTPProvider(apiKey, apiBase, proxy string) *HTTPProvider {
client := &http.Client{
Timeout: 0,
Timeout: 120 * time.Second,
}
if proxy != "" {