mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 23:11:37 +08:00
13 lines
349 B
Python
13 lines
349 B
Python
|
|
"""Shared helpers for direct xAI HTTP integrations."""
|
||
|
|
|
||
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
|
||
|
|
def hermes_xai_user_agent() -> str:
|
||
|
|
"""Return a stable Hermes-specific User-Agent for xAI HTTP calls."""
|
||
|
|
try:
|
||
|
|
from hermes_cli import __version__
|
||
|
|
except Exception:
|
||
|
|
__version__ = "unknown"
|
||
|
|
return f"Hermes-Agent/{__version__}"
|