Syntax highlighting fixes, autocomplete overhaul, tui changes

This commit is contained in:
Alexander R.
2026-07-28 22:30:25 +00:00
parent bcb054a3fa
commit 0559f7549a
11 changed files with 1046 additions and 245 deletions
+5 -6
View File
@@ -53,12 +53,11 @@ class MentorClient:
response.raise_for_status()
data = response.json()
content = (
data.get("choices", [{}])[0]
.get("message", {})
.get("content", "")
.strip()
)
msg_obj = data.get("choices", [{}])[0].get("message", {})
content = msg_obj.get("content") or ""
if not content.strip() and msg_obj.get("reasoning_content"):
content = msg_obj.get("reasoning_content", "")
content = content.strip()
if content:
return {