22 lines
442 B
Python
22 lines
442 B
Python
"""xAI (Grok) provider profile."""
|
|
|
|
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",
|
|
)
|
|
|
|
register_provider(xai)
|
|
|
|
|
|
def register(ctx):
|
|
"""No-op — this provider has no workspace package yet."""
|
|
pass
|
|
|