MCPcopy
hub / github.com/di-sukharev/opencommit / selectProvider

Function selectProvider

out/cli.cjs:86485–86510  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86483 "mlx" /* MLX */,
86484 "test" /* TEST */
86485];
86486var MODEL_REQUIRED_PROVIDERS = [
86487 "ollama" /* OLLAMA */,
86488 "mlx" /* MLX */,
86489 "llamacpp" /* LLAMACPP */
86490];
86491async 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 });

Callers 1

runSetupFunction · 0.70

Calls 2

hD2Function · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…