()
| 402 | * Get all available models |
| 403 | */ |
| 404 | export function listModels(): string[] { |
| 405 | if (!modelsDevCache) return [] |
| 406 | const models: string[] = [] |
| 407 | for (const provider of Object.values(modelsDevCache.data)) { |
| 408 | models.push(...Object.keys(provider.models)) |
| 409 | } |
| 410 | return models |
| 411 | } |
| 412 | |
| 413 | export type CopilotPlanType = "free" | "paid" |
| 414 |