MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / DefaultRetryConfig

Function DefaultRetryConfig

api/retry.go:50–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 "authorization": {},
49 "not_found": {},
50 "permission": {},
51 },
52 }
53}
54
55func DefaultRetryConfig() RetryConfig {
56 return RetryConfig{
57 MaxRetries: 3,
58 BaseDelay: time.Second,
59 MaxDelay: 60 * time.Second,
60 BackoffFactor: 2.0,
61 Jitter: true,
62 RetryableStatuses: map[int]struct{}{
63 429: {},
64 },
65 ConditionalRetryStatuses: map[int]struct{}{
66 503: {},
67 529: {},
68 },
69 NonRetryableKeywords: map[string]struct{}{
70 "model_not_found": {},
71 "invalid_request_error": {},
72 "invalid_api_key": {},
73 "authentication": {},
74 "authorization": {},
75 "not_found": {},
76 "permission": {},
77 },

Calls

no outgoing calls