Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

Merge pull request #1157 from NoxsMedia/fix/codex-luna-none-reasoning

Bingxi Zhao9cba3bdfafa8
diff --cc deeptutor/services/codex_auth/service.py
index 5aadc7df2,be19688bd..67f517782
--- a/deeptutor/services/codex_auth/service.py
+++ b/deeptutor/services/codex_auth/service.py
@@@ -289,14 -288,12 +301,15 @@@ def reconcile_codex_catalog_update
for model in current_profile.get("models", []):
if not isinstance(model, dict):
continue
+ label = named_models.get(model.get("id"))
+ if isinstance(label, str) and label.strip():
+ model["name"] = model["user_name"] = label.strip()
model.pop("reasoning_effort", None)
slug = model.get("model")
- supported = model.get("codex_supported_reasoning_levels")
+ supported = _managed_reasoning_levels(model)
+ model["codex_supported_reasoning_levels"] = supported
effort = requested.get(slug) if isinstance(slug, str) else None
- if isinstance(supported, list) and effort in supported:
+ if effort in supported:
model["reasoning_effort"] = effort
insert_at = proposed_indexes[0] if proposed_indexes else current_indexes[0]