fix(chat): support body and content fields in world and DM chat messages; feat(audio): add sound toggle switch and mute controls
checkpoint / checkpoint (push) Successful in 6m11s

This commit is contained in:
2026-09-19 13:38:23 +00:00
parent 7b693899a7
commit 7abf37ea81
13 changed files with 558 additions and 14 deletions
+22 -1
View File
@@ -195,7 +195,28 @@ func request(
var detail := "HTTP error %d" % response_code
var parsed: Variant = _parse_json(json_string)
if parsed is Dictionary and (parsed as Dictionary).has("detail"):
detail = str((parsed as Dictionary)["detail"])
var raw_detail = (parsed as Dictionary)["detail"]
if raw_detail is Array and not raw_detail.is_empty():
var parts: Array[String] = []
for val_err in raw_detail:
if val_err is Dictionary and val_err.has("msg"):
var loc_arr = val_err.get("loc", [])
var loc_str := ""
if loc_arr is Array:
var filtered_loc: Array[String] = []
for x in loc_arr:
if str(x) != "body":
filtered_loc.append(str(x))
loc_str = ".".join(filtered_loc)
if loc_str != "":
parts.append("%s: %s" % [loc_str, str(val_err.get("msg"))])
else:
parts.append(str(val_err.get("msg")))
else:
parts.append(str(val_err))
detail = ", ".join(parts)
else:
detail = str(raw_detail)
return _make_result(false, response_code, null, detail)