(modelWithProvider: string)
| 44 | * @returns [model, provider] tuple, if no `@` char found, provider is undefined |
| 45 | */ |
| 46 | export function getModelProvider(modelWithProvider: string): [string, string?] { |
| 47 | const [model, provider] = modelWithProvider.split(/@(?!.*@)/); |
| 48 | return [model, provider]; |
| 49 | } |
| 50 | |
| 51 | export function collectModelTable( |
| 52 | models: readonly LLMModel[], |
no outgoing calls
no test coverage detected