diff --git a/src/gui_2.py b/src/gui_2.py index 48d82378..7925c4db 100644 --- a/src/gui_2.py +++ b/src/gui_2.py @@ -3536,7 +3536,9 @@ def render_persona_editor_window(app: App, is_embedded: bool = False) -> None: if imgui.button("-" if is_expanded else "+"): app._persona_pref_models_expanded[i] = not is_expanded imgui.same_line(); imgui.text(f"{i+1}."); imgui.same_line(); imgui.text_colored(C_LBL(), f"{prov}"); imgui.same_line(); imgui.text("-"); imgui.same_line(); imgui.text_colored(C_IN(), f"{mod}") if not is_expanded: - imgui.same_line(); summary = f" (T:{entry.get('temperature', 0.7):.1f}, P:{entry.get('top_p', 1.0):.2f}, M:{entry.get('max_output_tokens', 0)})" + from src.type_aliases import DiscussionSettings as _DS + ds = _DS.from_dict(entry) if isinstance(entry, dict) else entry + imgui.same_line(); summary = f" (T:{ds.temperature:.1f}, P:{ds.top_p:.2f}, M:{ds.max_output_tokens})" imgui.text_colored(C_SUB(), summary) imgui.same_line(imgui.get_content_region_avail().x - 30); if imgui.button("x"): to_remove.append(i)