Skip to content

Commit a27bd9e

Browse files
authored
✨update onboarding_flow to use input for API key input (#51)
1 parent d378d30 commit a27bd9e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ai_commit_msg/services/onboarding_service.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ def onboarding_flow():
8989

9090
if provider_choice in ['openai', 'anthropic']:
9191
print_formatted_text(HTML(f"\n<b>Let's set up your {provider_choice.capitalize()} API key.</b>"))
92-
api_key = inquirer.prompt([
93-
inquirer.Password('key', message=f"Enter your {provider_choice.capitalize()} API key")
94-
])['key']
92+
api_key = input(f"[?] Enter your {provider_choice.capitalize()} API key: ")
9593
if api_key:
9694
getattr(config_service, f"set_{provider_choice}_api_key")(api_key)
9795
console.print(f"{provider_choice.capitalize()} API key set successfully!", style="bold green")

0 commit comments

Comments
 (0)