fix: update Pi and model provider flows

This commit is contained in:
Advait Paliwal
2026-04-12 13:02:16 -07:00
parent b3a82d4a92
commit aa96b5ee14
14 changed files with 273 additions and 83 deletions

View File

@@ -130,7 +130,7 @@ async function handleModelCommand(subcommand: string | undefined, args: string[]
if (subcommand === "login") {
if (args[0]) {
// Specific provider given - use OAuth login directly
// Specific provider given - resolve OAuth vs API-key setup automatically
await loginModelProvider(feynmanAuthPath, args[0], feynmanSettingsPath);
} else {
// No provider specified - show auth method choice
@@ -147,7 +147,7 @@ async function handleModelCommand(subcommand: string | undefined, args: string[]
if (subcommand === "set") {
const spec = args[0];
if (!spec) {
throw new Error("Usage: feynman model set <provider/model>");
throw new Error("Usage: feynman model set <provider/model|provider:model>");
}
setDefaultModelSpec(feynmanSettingsPath, feynmanAuthPath, spec);
return;