hermes-agent/agent/transports
kshitij e09ef9ebd8 fix(transport): use getattr for supports_prompt_cache_key on stale profiles
After a partial update (stash restore overwriting providers/base.py with
an older version), the NousProfile singleton was instantiated from a
ProviderProfile class that predates the supports_prompt_cache_key field
(added in f4fb23f3d). Accessing profile.supports_prompt_cache_key raised
AttributeError, crashing every API call with:
  'NousProfile' object has no attribute 'supports_prompt_cache_key'

Use getattr(profile, 'supports_prompt_cache_key', False) so a stale
profile degrades to 'no prompt cache key' instead of crashing.
2026-08-09 23:19:39 -07:00
..
__init__.py
…
anthropic.py
…
base.py
…
bedrock.py
…
chat_completions.py
…
codex.py
…
codex_app_server.py
…
codex_app_server_session.py
…
codex_event_projector.py
…
hermes_tools_mcp_server.py
…
types.py
…