Skip to content

feat: Add support for Grok 4.3 Beta models#488

Merged
chenyme merged 1 commit intomainfrom
support_grok_4.3
Apr 20, 2026
Merged

feat: Add support for Grok 4.3 Beta models#488
chenyme merged 1 commit intomainfrom
support_grok_4.3

Conversation

@chenyme
Copy link
Copy Markdown
Owner

@chenyme chenyme commented Apr 20, 2026

Summary

新增 grok-4.3-beta 模型支持,对应上游 grok-420-computer-use-sa modeId。该模式有独立配额维度(super 50/2h,heavy 150/2h),不对 basic 池开放。

  • enums.py:新增 ModeId.GROK_4_3 = 4to_api_str() 加覆盖映射
  • models.pyAccountQuotaSet 新增 grok_4_3 配额字段
  • quota_defaults.py:SUPER/HEAVY 默认配额补充 grok_4_3,basic 不含 mode_id=4
  • registry.py:注册 grok-4.3-betaTier.SUPER,天然排除 basic 池)

Testing

# 确认模型出现在列表中(需要 super/heavy 账号在线)
curl http://localhost:8000/v1/models | jq '.data[].id' | grep 4.3

# 确认请求成功,上游收到正确 modeId
curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model":"grok-4.3-beta","messages":[{"role":"user","content":"hi"}]}'

Related

@chenyme chenyme merged commit cbb2e3a into main Apr 20, 2026
4 checks passed
@chenyme chenyme deleted the support_grok_4.3 branch April 20, 2026 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: grok 4.3beta支持

1 participant