superagent请求问题修复

This commit is contained in:
andy committed 2026-09-06 01:40:15 +08:00
1 parent ee9d2d7cf1
commit 7243319bbb
19 files changed
+388 -74

No files matched your search

+1
View File
@@ -60,6 +60,7 @@ func New(ctx context.Context, cfg config.Config) (*Application, error) {
Enabled: cfg.SuperAgent.Enabled,
BaseURL: cfg.SuperAgent.BaseURL,
APIKey: cfg.SuperAgent.OpenAPIKey,
IncludeTrace: cfg.SuperAgent.IncludeTrace,
ConnectTimeout: cfg.SuperAgent.ConnectTimeout,
RecoveryMaxAttempts: cfg.SuperAgent.RecoveryMaxAttempts,
RecoveryInitialBackoff: cfg.SuperAgent.RecoveryInitialBackoff,
+1
View File
@@ -115,6 +115,7 @@ func TestNewWiresChatAPIToSuperAgent(t *testing.T) {
Enabled: true,
BaseURL: provider.URL,
OpenAPIKey: "provider-open-api-key",
IncludeTrace: true,
ConnectTimeout: time.Second,
RecoveryMaxAttempts: 1,
RecoveryInitialBackoff: time.Millisecond,