Skip to content

Commit

Permalink
Fix duplicate api key input requested (#12)
Browse files Browse the repository at this point in the history
* Fix duplicate api key input requested
  • Loading branch information
JannikSt authored Jan 8, 2025
1 parent 34dd435 commit 9cd4b71
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "prime-cli"
version = "0.1.2"
version = "0.1.3"
description = "Prime Intellect CLI"
readme = "README.md"
requires-python = ">=3.8"
Expand Down
2 changes: 0 additions & 2 deletions src/prime_cli/commands/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ def set_api_key(
),
) -> None:
"""Set your API key"""
console.print("[yellow]Note: Your input will be hidden for security[/yellow]")
api_key = typer.prompt("Enter your API key", hide_input=True)
config = Config()
config.set_api_key(api_key)
masked_key = f"{api_key[:6]}***{api_key[-4:]}" if len(api_key) > 10 else "***"
Expand Down

0 comments on commit 9cd4b71

Please sign in to comment.