()
| 48 | "authorization": {}, |
| 49 | "not_found": {}, |
| 50 | "permission": {}, |
| 51 | }, |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | func 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 | }, |
no outgoing calls