Syntax highlighting fixes, autocomplete overhaul, tui changes
This commit is contained in:
+5
-6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user