(modelString: string)
| 41 | } |
| 42 | |
| 43 | function inferProviderFromModelString(modelString: string): string | undefined { |
| 44 | const provider = modelString.split(":")[0]?.trim(); |
| 45 | return provider && provider.length > 0 ? provider : undefined; |
| 46 | } |
| 47 | |
| 48 | export function mapNameGenerationError(error: unknown, modelString: string): NameGenerationError { |
| 49 | if (RetryError.isInstance(error) && error.lastError) { |
no outgoing calls
no test coverage detected