(error: unknown)
| 50 | export type GlobalCacheStrategy = 'tool_based' | 'system_prompt' | 'none' |
| 51 | |
| 52 | function getErrorMessage(error: unknown): string { |
| 53 | if (error instanceof APIError) { |
| 54 | const body = error.error as { error?: { message?: string } } | undefined |
| 55 | if (body?.error?.message) return body.error.message |
| 56 | } |
| 57 | return error instanceof Error ? error.message : String(error) |
| 58 | } |
| 59 | |
| 60 | type KnownGateway = |
| 61 | | 'litellm' |
no outgoing calls
no test coverage detected