Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion anton/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.7.0"
__version__ = "1.0.0"
5 changes: 2 additions & 3 deletions anton/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -1576,8 +1576,7 @@ def _model_label(model: str, role: str) -> str:

def _print_choices():
console.print(" [bold]1[/] [link=https://mdb.ai][anton.cyan]Minds-Cloud[/][/link] [anton.success](recommended)[/]")
console.print(" [bold]2[/] [anton.cyan]Minds-Enterprise Server[/]")
console.print(" [bold]3[/] [anton.cyan]Bring your own key[/] [anton.muted]Anthropic / OpenAI[/]")
console.print(" [bold]2[/] [anton.cyan]Bring your own key[/] [anton.muted]Anthropic / OpenAI[/]")
console.print(" [bold]q[/] [anton.muted]Back[/]")
console.print()

Expand All @@ -1586,7 +1585,7 @@ def _print_choices():
while True:
choice = Prompt.ask(
"Choose LLM Provider",
choices=["1", "2", "3", "q"],
choices=["1", "2", "q"],
default="q",
console=console,
)
Expand Down
12 changes: 5 additions & 7 deletions anton/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,14 +382,13 @@ def _build_frame(mouth: str, typed_lines: list[str]) -> Text:
console.print(f"[anton.glow] {'━' * 40}[/]")
console.print()
console.print(" [bold]1[/] [link=https://mdb.ai][anton.cyan]Minds-Cloud[/][/link] [anton.success](recommended)[/]")
console.print(" [bold]2[/] [anton.cyan]Minds-Enterprise Server[/]")
console.print(" [bold]3[/] [anton.cyan]Bring your own key[/] [anton.muted]Anthropic / OpenAI[/]")
console.print(" [bold]2[/] [anton.cyan]Bring your own key[/] [anton.muted]Anthropic / OpenAI[/]")
console.print()

while True:
choice = Prompt.ask(
"Choose LLM Provider",
choices=["1", "2", "3"],
choices=["1", "2"],
default="1",
console=console,
)
Expand All @@ -398,15 +397,14 @@ def _build_frame(mouth: str, typed_lines: list[str]) -> Text:
if choice == "1":
_setup_minds(settings, ws)
elif choice == "2":
_setup_minds(settings, ws, default_url=None)
else:
_setup_other_provider(settings, ws)
else:
_setup_minds(settings, ws, default_url=None)
break # success
except _SetupRetry:
console.print()
console.print(" [bold]1[/] [link=https://mdb.ai][anton.cyan]Minds-Cloud[/][/link] [anton.success](recommended)[/]")
console.print(" [bold]2[/] [anton.cyan]Minds-Enterprise Server[/]")
console.print(" [bold]3[/] [anton.cyan]Bring your own key[/] [anton.muted]Anthropic / OpenAI[/]")
console.print(" [bold]2[/] [anton.cyan]Bring your own key[/] [anton.muted]Anthropic / OpenAI[/]")
console.print()
continue

Expand Down
Loading