Conversation
Co-authored-by: JohnPBZ <71495254+JohnPBZ@users.noreply.github.com> Agent-Logs-Url: https://github.com/JohnPBZ/AIClient-2-API/sessions/76e633ba-fe5f-40ea-a6b0-c6f0b4e59e6e
Copilot
AI
changed the title
[WIP] Add new LLM provider SuperGrok based on existing Grok functionality
Add SuperGrok provider and align Grok 4.20 requests with modeId API format
Mar 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新增
SuperGrokprovider,沿用既有 Grok reverse 流程但以獨立 provider type/設定鍵接入;同時對齊 grok2api PR justlovemaki#382,將grok-4.20請求改為modeId格式並補上 fast 變體。Provider onboarding:
supergrok-customMODEL_PROTOCOL_PREFIX.SUPERGROK = 'supergrok'MODEL_PROVIDER.SUPERGROK_CUSTOM = 'supergrok-custom'supergrok-custommodel catalog (mirrors Grok family, including 4.20 variants).SuperGrok service wiring
SuperGrokApiServiceas a thin Grok-derived service that mapsSUPERGROK_*config keys to Grok runtime fields.Apply PR Windows 双击安装脚本没反应,有红色信息一闪而过 justlovemaki/AIClient-2-API#382 behavior for Grok 4.20
grok-4.20-betamapping to expert mode semantics.grok-4.20-fast.grok-420payload construction:modelName/modelModemodeId(expert/fast)responseMetadatato{}and keepenable420 = trueUsage and UI integration
SUPERGROK_COOKIE_TOKEN,SUPERGROK_CF_CLEARANCE,SUPERGROK_USER_AGENT,SUPERGROK_BASE_URL).SuperGrok Reverse.Example (new 4.20 payload path):
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
192.168.1.232/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/AIClient-2-API/AIClient-2-API/node_modules/.bin/../jest/bin/jest.js --runInBand(packet block)registry.npmmirror.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/_temp/ghcca-node/node/bin/npm install(dns block)/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/_temp/ghcca-node/node/bin/npm ci /rg(dns block)If you need me to access, download, or install something from one of these locations, you can either:
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.