mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-30 19:09:28 +00:00
17 lines
472 B
Python
17 lines
472 B
Python
"""xAI (Grok) provider profile."""
|
|
|
|
from hermes_cli import __version__ as _HERMES_VERSION
|
|
from providers import register_provider
|
|
from providers.base import ProviderProfile
|
|
|
|
xai = ProviderProfile(
|
|
name="xai",
|
|
aliases=("grok", "x-ai", "x.ai"),
|
|
api_mode="codex_responses",
|
|
env_vars=("XAI_API_KEY",),
|
|
base_url="https://api.x.ai/v1",
|
|
auth_type="api_key",
|
|
default_headers={"User-Agent": f"Hermes-Agent/{_HERMES_VERSION}"},
|
|
)
|
|
|
|
register_provider(xai)
|