Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions honcho_integration/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ def peer_memory_mode(self, peer_name: str) -> str:
# block exists or enabled was set explicitly), vs auto-enabled from a
# stray HONCHO_API_KEY env var.
explicitly_configured: bool = False

def __post_init__(self):
# Bypass API key validation for local Honcho servers
if self.base_url and ("localhost" in self.base_url or "127.0.0.1" in self.base_url):
if not self.api_key:
self.api_key = "local_dummy_key"

@classmethod
def from_env(cls, workspace_id: str = "hermes") -> HonchoClientConfig:
Expand Down
Loading