feat: local auth config (#854)

This commit is contained in:
Charles Packer
2024-01-18 16:43:41 -08:00
committed by GitHub
parent da5a8cdbfe
commit 77e5c43c8f
3 changed files with 33 additions and 15 deletions

View File

@@ -162,7 +162,7 @@ def quickstart(
api_key = os.getenv("OPENAI_API_KEY")
while api_key is None or len(api_key) == 0:
# Ask for API key as input
api_key = questionary.text("Enter your OpenAI API key (starts with 'sk-', see https://platform.openai.com/api-keys):").ask()
api_key = questionary.password("Enter your OpenAI API key (starts with 'sk-', see https://platform.openai.com/api-keys):").ask()
credentials.openai_key = api_key
credentials.save()