(provider: string)
| 1752 | }; |
| 1753 | |
| 1754 | const generatedAIProviderName = (provider: string): string => { |
| 1755 | const suffix = |
| 1756 | globalThis.crypto?.randomUUID?.() ?? |
| 1757 | `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}`; |
| 1758 | return `${provider}-${suffix}`; |
| 1759 | }; |
| 1760 | |
| 1761 | const normalizeAIProviderType = (provider: string): AIProviderType => { |
| 1762 | const normalized = provider.trim().toLowerCase(); |
no test coverage detected