diff --git a/GramAddict/core/perception/screen_identity.py b/GramAddict/core/perception/screen_identity.py index ff9ba1f..535e3ea 100644 --- a/GramAddict/core/perception/screen_identity.py +++ b/GramAddict/core/perception/screen_identity.py @@ -219,6 +219,8 @@ class ScreenIdentity: return ScreenType.REELS_FEED if selected_tab == "search_tab": return ScreenType.EXPLORE_GRID + if "action_bar_search_edit_text" in ids and "search_tab" in ids: + return ScreenType.EXPLORE_GRID if selected_tab == "profile_tab": return ScreenType.OWN_PROFILE if selected_tab == "direct_tab": @@ -232,11 +234,11 @@ class ScreenIdentity: cfg = Config() url = ( - getattr(cfg.args, "ai_embedding_url", "http://localhost:11434/api/chat") + getattr(cfg.args, "ai_model_url", "http://localhost:11434/api/generate") if hasattr(cfg, "args") - else "http://localhost:11434/api/chat" + else "http://localhost:11434/api/generate" ) - model = getattr(cfg.args, "ai_embedding_model", "llama3") if hasattr(cfg, "args") else "llama3" + model = getattr(cfg.args, "ai_model", "qwen3.5:latest") if hasattr(cfg, "args") else "qwen3.5:latest" layout_context = ( f"Selected Tab: {selected_tab}\nResource IDs: {list(ids)}\nVisible Texts context: {texts[:10]}\n"