Repository navigation
新增:Qoder 支持网页 Cookie 与逐份积分到期 - #23
Open
hebingking wants to merge 1 commit into
Open
hebingking wants to merge 1 commit into
hebingking wants to merge 1 commit into
Conversation
- 新增 webCookie 凭证与 webcookie.info/set/clear 管理动作 - 请求网页积分明细,解析资源包 expires_at 为 credits[].expireAt - 声明 credit_expiry,供主程序按最快到期优先排序 - PAT 登录表单增加可选的网页 Cookie 字段
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.
概述
为 Qoder 中国版/国际版增加网页 Cookie 凭证,读取
big_model_credits接口的逐份资源包到期时间,并申报credit_expiry,使主程序的「积分到期时间 / 最快到期优先」排序对 Qoder 生效。改动
webCookie凭证字段:接受完整 Cookie、qoder_session_cookie=…或裸值;续期时保留。GET /api/v2/me/usages/big_model_credits,解析resource_package_quota.quota_detail[]的expires_at,输出credits[].expireAt(毫秒)。user_id与账号一致;未配置/失效时回落到原聚合额度,不影响原有查询。credit_expiry: true。webcookie.info/webcookie.set/webcookie.clear。验证
cargo test -p agent2api-providers:16/16 通过。node scripts/verify.mjs --exe target/release/agent2api-providers.exe:28/28 通过。expireAt的逐包行。说明
🤖 本条回复由 AI Agent 生成
Generated by an AI agent.