fix(providers): accept Grok auth record imports - #679
Merged
Conversation
Contributor
📝 WalkthroughWalkthrough扩展 Grok 凭据导入以兼容 xAI CPA、CLIProxyAPI 和 Maxx 导出格式,并新增归一化测试;同时将 Provider 批量操作栏改为顶部 sticky 布局,更新 grok 类型覆盖测试。 ChangesProvider 导入与界面更新
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ymkiux
approved these changes
Jul 15, 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.
Summary
metadata, and Maxx exported Grok provider payloads underconfig.grokVerification
cd web && pnpm test -- grok-token-import.test.ts(17 files / 81 tests passed)cd web && pnpm typecheckgit diff --checkcd web && pnpm exec prettier --check src/pages/settings/index.tsx src/locales/zh.json src/locales/en.jsoncd web && pnpm exec prettier --check src/components/routes/ClientTypeRoutesContent.tsx src/pages/providers/components/grok-token-import.tsx src/pages/providers/components/grok-token-import.test.ts src/pages/providers/types.test.tsgo test ./internal/executor ./internal/serviceNotes
cd web && pnpm format:checkstill reports pre-existing formatting drift across unrelated files; only the touched files were formatted for this PR.Summary by CodeRabbit
新功能
测试