diff --git a/src/app_controller.py b/src/app_controller.py index 2a426b33..255f1c6e 100644 --- a/src/app_controller.py +++ b/src/app_controller.py @@ -3090,7 +3090,7 @@ class AppController: def do_fetch() -> None: try: - for p in models.PROVIDERS: + for p in ai_client.PROVIDERS: try: self.all_available_models[p] = ai_client.list_models(p) except Exception as e: diff --git a/src/gui_2.py b/src/gui_2.py index 0b3adb3c..8875ba45 100644 --- a/src/gui_2.py +++ b/src/gui_2.py @@ -2290,7 +2290,7 @@ def render_provider_panel(app: App) -> None: if app.perf_profiling_enabled: app.perf_monitor.start_component("_render_provider_panel") imgui.text("Provider") if imgui.begin_combo("##prov", app.current_provider): - for p in models.PROVIDERS: + for p in ai_client.PROVIDERS: if imgui.selectable(p, p == app.current_provider)[0]: app.current_provider = p imgui.end_combo() @@ -2846,7 +2846,7 @@ def render_persona_editor_window(app: App, is_embedded: bool = False) -> None: imgui.begin_child("pref_models_scroll", imgui.ImVec2(0, h1), True) if True: to_remove = [] - providers = models.PROVIDERS + providers = ai_client.PROVIDERS if not hasattr(app, '_persona_pref_models_expanded'): app._persona_pref_models_expanded = {} for i, entry in enumerate(app._editing_persona_preferred_models_list): imgui.push_id(f"pref_model_{i}") @@ -5374,7 +5374,7 @@ def render_mma_usage_section(app: App) -> None: with imscope.id(f"tier_cfg_{tier}"): imgui.push_item_width(80) if imgui.begin_combo("##prov", curr_prov): - for p in models.PROVIDERS: + for p in ai_client.PROVIDERS: if imgui.selectable(p, p == curr_prov)[0]: app.mma_tier_usage[tier]["provider"] = p models_list = app.controller.all_available_models.get(p, [])