refactor(honcho): remove local memory mode
The "local" memoryMode was redundant with enabled: false. Simplifies the mode system to hybrid and honcho only.
This commit is contained in:
parent
f896bb5d8c
commit
ae2a5e5743
8 changed files with 22 additions and 49 deletions
|
|
@ -287,9 +287,7 @@ class GatewayRunner:
|
|||
from honcho_integration.session import HonchoSessionManager
|
||||
|
||||
hcfg = HonchoClientConfig.from_global_config()
|
||||
ai_mode = hcfg.peer_memory_mode(hcfg.ai_peer)
|
||||
user_mode = hcfg.peer_memory_mode(hcfg.peer_name or "user")
|
||||
if not hcfg.enabled or not hcfg.api_key or (ai_mode == "local" and user_mode == "local"):
|
||||
if not hcfg.enabled or not hcfg.api_key:
|
||||
return None, hcfg
|
||||
|
||||
client = get_honcho_client(hcfg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue