youclaw 4.8.0__tar.gz → 4.8.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {youclaw-4.8.0/src/youclaw.egg-info → youclaw-4.8.1}/PKG-INFO +1 -1
- {youclaw-4.8.0 → youclaw-4.8.1}/pyproject.toml +1 -1
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/config.py +14 -2
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/dashboard.py +2 -1
- {youclaw-4.8.0 → youclaw-4.8.1/src/youclaw.egg-info}/PKG-INFO +1 -1
- {youclaw-4.8.0 → youclaw-4.8.1}/LICENSE +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/MANIFEST.in +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/README.md +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/setup.cfg +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/__init__.py +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/bot.py +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/cli.py +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/commands.py +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/core_skills.py +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/discord_handler.py +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/env_manager.py +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/main.py +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/memory_manager.py +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/ollama_client.py +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/personality_manager.py +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/scheduler_manager.py +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/search_client.py +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/skills_manager.py +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/telegram_handler.py +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw/vector_manager.py +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw.egg-info/SOURCES.txt +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw.egg-info/dependency_links.txt +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw.egg-info/entry_points.txt +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw.egg-info/requires.txt +0 -0
- {youclaw-4.8.0 → youclaw-4.8.1}/src/youclaw.egg-info/top_level.txt +0 -0
|
@@ -150,9 +150,21 @@ class Config:
|
|
|
150
150
|
am = await memory_manager.get_global_setting("active_model")
|
|
151
151
|
if am and am.strip():
|
|
152
152
|
self.ollama.model = am
|
|
153
|
-
|
|
153
|
+
# Model Persistence
|
|
154
|
+
am = await memory_manager.get_global_setting("active_model")
|
|
155
|
+
if am and am.strip():
|
|
156
|
+
self.ollama.model = am
|
|
157
|
+
|
|
158
|
+
# Host Persistence (Fixes "Vanishing URL" bug)
|
|
159
|
+
oh = await memory_manager.get_global_setting("ollama_host")
|
|
160
|
+
if oh and oh.strip():
|
|
161
|
+
self.ollama.host = oh
|
|
162
|
+
# Re-init session if needed handled by client, but host property is dynamic if we used config directly
|
|
163
|
+
# ollama_client uses config.ollama.host property, so this update is immediate.
|
|
164
|
+
|
|
165
|
+
# Note: ollama_client properties are tied to this config instance
|
|
154
166
|
|
|
155
|
-
logger.info(f"Config Refreshed:
|
|
167
|
+
logger.info(f"Config Refreshed: Host={self.ollama.host}, Model={self.ollama.model}, Discord={self.discord.enabled}, Telegram={self.telegram.enabled}")
|
|
156
168
|
except Exception as e:
|
|
157
169
|
logger.error(f"Error refreshing config from DB: {e}")
|
|
158
170
|
|
|
@@ -1390,8 +1390,9 @@ async def run_dashboard(bot_instance=None, port=8080):
|
|
|
1390
1390
|
app['bot'] = bot_instance
|
|
1391
1391
|
app.router.add_routes(routes)
|
|
1392
1392
|
|
|
1393
|
-
await ollama_client.initialize()
|
|
1394
1393
|
await memory_manager.initialize()
|
|
1394
|
+
await config.refresh_from_db() # Load saved settings (Ollama URL etc)
|
|
1395
|
+
await ollama_client.initialize()
|
|
1395
1396
|
|
|
1396
1397
|
print(f"🦞 YouClaw Dashboard starting on http://0.0.0.0:{port}")
|
|
1397
1398
|
runner = web.AppRunner(app)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|