From cdc40f7302653d758338d59f576e7e6c65e5cbdb Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Mon, 20 Jul 2026 13:03:15 -0600 Subject: [PATCH] feat: bundle xAI OAuth defaults in models.yaml --- models.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/models.yaml b/models.yaml index 2d435e5..c218408 100644 --- a/models.yaml +++ b/models.yaml @@ -806,6 +806,24 @@ # - https://docs.x.ai/docs/models # - https://docs.x.ai/docs/api-reference#chat-completions - provider: xai + oauth: + client_id: b1a00492-073a-47ea-816f-4c329264a828 + authorize_url: https://auth.x.ai/oauth2/authorize + token_url: https://auth.x.ai/oauth2/token + scopes: + - openid + - profile + - email + - offline_access + - grok-cli:access + - api:access + redirect_port: 56121 + flow: pkce + token_request_format: form_url_encoded + extra_authorize_params: + plan: generic + referrer: coyote + echo_pkce_in_token_exchange: true models: - name: grok-4.5 input_price: 2