feat: Enhance proxy clearance management with support for clearance origins and host handling#496
Merged
Conversation
…rigins and host handling
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
accept_tos -> set_birth_date -> enable_nsfw,在开启前自动接受accounts.x.ai的条款。proxy + host维度缓存和刷新,不再把accounts.x.ai与grok.com共用同一份 clearance。clearance_host字段和 tuple key,失效反馈也只作用于对应 host。xai_auth改为复用统一的 endpoint table,并清理了一些无用辅助逻辑。accounts.x.ai和grok.com的 clearance。Testing
uv run ruff check app/control/proxy/models.py app/control/proxy/providers/manual.py app/control/proxy/providers/flaresolverr.py app/control/proxy/__init__.py app/dataplane/proxy/__init__.py app/dataplane/proxy/table.py app/dataplane/reverse/protocol/xai_auth.py app/products/web/admin/batch.pyuv run python -m compileall appPOST /batch/nsfw请求。Related