codegpt-ai 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chat.py +25 -4
- package/package.json +1 -1
package/chat.py
CHANGED
|
@@ -714,7 +714,8 @@ def setup_profile():
|
|
|
714
714
|
" Your local AI assistant.\n"
|
|
715
715
|
" 80+ commands. 8 agents.\n"
|
|
716
716
|
" 29 tools. No cloud needed.\n\n"
|
|
717
|
-
" Powered by [bold]Ollama[/].\n"
|
|
717
|
+
" Powered by [bold]Ollama[/].\n\n"
|
|
718
|
+
" [dim]Press Enter...[/]"
|
|
718
719
|
),
|
|
719
720
|
border_style="bright_cyan", padding=(0, 1), width=w,
|
|
720
721
|
))
|
|
@@ -729,12 +730,24 @@ def setup_profile():
|
|
|
729
730
|
" [bright_cyan]6[/] personas (hacker, teacher, architect...)\n"
|
|
730
731
|
" [bright_cyan]15[/] prompt templates\n\n"
|
|
731
732
|
" No cloud. No API keys. Powered by [bold]Ollama[/].\n\n"
|
|
732
|
-
" [dim]
|
|
733
|
+
" [dim]Press Enter to continue...[/]"
|
|
733
734
|
),
|
|
734
735
|
title="[bold bright_cyan]CodeGPT v1.0[/]",
|
|
735
736
|
border_style="bright_cyan", padding=(1, 2), width=w,
|
|
736
737
|
))
|
|
737
738
|
|
|
739
|
+
# Wait for Enter
|
|
740
|
+
try:
|
|
741
|
+
prompt([("class:prompt", " Press Enter to continue... ")], style=input_style)
|
|
742
|
+
except (KeyboardInterrupt, EOFError):
|
|
743
|
+
pass
|
|
744
|
+
|
|
745
|
+
clear_screen()
|
|
746
|
+
print_header(MODEL)
|
|
747
|
+
console.print(Panel(
|
|
748
|
+
Text("Let's set up your profile — takes 10 seconds.", style="bold"),
|
|
749
|
+
border_style="bright_cyan", padding=(0, 1 if compact else 2), width=w,
|
|
750
|
+
))
|
|
738
751
|
console.print()
|
|
739
752
|
|
|
740
753
|
try:
|
|
@@ -760,7 +773,8 @@ def setup_profile():
|
|
|
760
773
|
" Just type to chat\n"
|
|
761
774
|
" [bright_cyan]/[/] see all commands\n"
|
|
762
775
|
" [bright_cyan]/help[/] full guide\n"
|
|
763
|
-
" [bright_cyan]/connect IP[/] link PC\n"
|
|
776
|
+
" [bright_cyan]/connect IP[/] link PC\n\n"
|
|
777
|
+
" [dim]Press Enter...[/]"
|
|
764
778
|
),
|
|
765
779
|
title="[bold green]Ready[/]",
|
|
766
780
|
border_style="green", padding=(0, 1), width=w,
|
|
@@ -778,11 +792,18 @@ def setup_profile():
|
|
|
778
792
|
" [bright_cyan]/all question[/] Ask all 8 agents at once\n"
|
|
779
793
|
" [bright_cyan]/tools[/] Browse 29 AI tools\n"
|
|
780
794
|
" [bright_cyan]/connect IP[/] Connect to remote Ollama\n\n"
|
|
781
|
-
" [dim]Tip: Press / to see autocomplete suggestions.[/]"
|
|
795
|
+
" [dim]Tip: Press / to see autocomplete suggestions.[/]\n\n"
|
|
796
|
+
" [dim]Press Enter to start chatting...[/]"
|
|
782
797
|
),
|
|
783
798
|
title="[bold green]You're all set[/]",
|
|
784
799
|
border_style="green", padding=(1, 2), width=w,
|
|
785
800
|
))
|
|
801
|
+
|
|
802
|
+
# Wait for Enter before entering chat
|
|
803
|
+
try:
|
|
804
|
+
prompt([("class:prompt", " Press Enter to start... ")], style=input_style)
|
|
805
|
+
except (KeyboardInterrupt, EOFError):
|
|
806
|
+
pass
|
|
786
807
|
console.print()
|
|
787
808
|
|
|
788
809
|
|