codegpt-ai 2.2.0 → 2.3.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 +18 -6
- package/package.json +1 -1
package/chat.py
CHANGED
|
@@ -1222,9 +1222,13 @@ def print_header(model):
|
|
|
1222
1222
|
compact = is_compact()
|
|
1223
1223
|
|
|
1224
1224
|
if compact:
|
|
1225
|
-
console.print(
|
|
1225
|
+
console.print()
|
|
1226
|
+
console.print(Text.from_markup(
|
|
1227
|
+
f" [bold red]Code[/][bold bright_blue]GPT[/] [dim]v2.0 · {model}[/]"
|
|
1228
|
+
))
|
|
1229
|
+
console.print(Rule(style="dim", characters="─"))
|
|
1230
|
+
console.print()
|
|
1226
1231
|
else:
|
|
1227
|
-
# Clean startup like Claude Code — no ASCII art on repeat, just info
|
|
1228
1232
|
is_local = "localhost" in OLLAMA_URL or "127.0.0.1" in OLLAMA_URL
|
|
1229
1233
|
server = "local" if is_local else OLLAMA_URL.split("//")[1].split("/")[0] if "//" in OLLAMA_URL else "?"
|
|
1230
1234
|
profile = load_profile()
|
|
@@ -1232,15 +1236,23 @@ def print_header(model):
|
|
|
1232
1236
|
mem_count = len(load_memories())
|
|
1233
1237
|
|
|
1234
1238
|
console.print()
|
|
1235
|
-
|
|
1239
|
+
# Claude Code style banner — red and blue
|
|
1240
|
+
console.print(Text.from_markup(
|
|
1241
|
+
"[bold red] ╭─────────────────────────────────╮[/]\n"
|
|
1242
|
+
"[bold red] │[/] [bold red]│[/]\n"
|
|
1243
|
+
"[bold red] │[/] [bold red]Code[/][bold bright_blue]GPT[/] [dim]v2.0[/] [bold red]│[/]\n"
|
|
1244
|
+
"[bold red] │[/] [dim]local ai · 123 commands[/] [bold red]│[/]\n"
|
|
1245
|
+
"[bold red] │[/] [bold red]│[/]\n"
|
|
1246
|
+
"[bold red] ╰─────────────────────────────────╯[/]"
|
|
1247
|
+
))
|
|
1236
1248
|
console.print()
|
|
1237
1249
|
console.print(Text.from_markup(
|
|
1238
|
-
f" [dim]model[/] [
|
|
1250
|
+
f" [dim]model[/] [bright_blue]{model}[/]\n"
|
|
1239
1251
|
f" [dim]server[/] [green]{server}[/]\n"
|
|
1240
1252
|
f" [dim]user[/] {name}\n"
|
|
1241
|
-
f" [dim]memory[/] {mem_count} items
|
|
1242
|
-
f" [dim]commands[/] {len(COMMANDS)}"
|
|
1253
|
+
f" [dim]memory[/] {mem_count} items"
|
|
1243
1254
|
))
|
|
1255
|
+
console.print(Rule(style="dim", characters="─"))
|
|
1244
1256
|
console.print()
|
|
1245
1257
|
|
|
1246
1258
|
|