| 86483 | "mlx" /* MLX */, |
| 86484 | "test" /* TEST */ |
| 86485 | ]; |
| 86486 | var MODEL_REQUIRED_PROVIDERS = [ |
| 86487 | "ollama" /* OLLAMA */, |
| 86488 | "mlx" /* MLX */, |
| 86489 | "llamacpp" /* LLAMACPP */ |
| 86490 | ]; |
| 86491 | async function selectProvider() { |
| 86492 | const primaryOptions = PRIMARY_PROVIDERS.map((provider) => ({ |
| 86493 | value: provider, |
| 86494 | label: PROVIDER_DISPLAY_NAMES[provider] || provider |
| 86495 | })); |
| 86496 | primaryOptions.push({ |
| 86497 | value: "other", |
| 86498 | label: "Other providers..." |
| 86499 | }); |
| 86500 | const selection = await ee({ |
| 86501 | message: "Select your AI provider:", |
| 86502 | options: primaryOptions |
| 86503 | }); |
| 86504 | if (hD2(selection)) return selection; |
| 86505 | if (selection === "other") { |
| 86506 | const otherOptions = OTHER_PROVIDERS.map((provider) => ({ |
| 86507 | value: provider, |
| 86508 | label: PROVIDER_DISPLAY_NAMES[provider] || provider |
| 86509 | })); |
| 86510 | return await ee({ |
| 86511 | message: "Select provider:", |
| 86512 | options: otherOptions |
| 86513 | }); |