superagent请求问题修复
This commit is contained in:
1 parent
ee9d2d7cf1
commit
7243319bbb
19 files changed
+388
-74
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user