chore(deps): bump idna from 3.11 to 3.15 in /examples/agent-integration/error/adding-error-context
Bumps idna from 3.11 to 3.15.
Changelog
Sourced from idna's changelog.
3.15 (2026-05-12)
- Enforce DNS-length cap on individual labels early in
check_label, short-circuiting contextual-rule processing for oversized input while staying compatible with UTS 46 usage.- Tidy core helpers: hoist bidi category sets to module-level frozensets (avoiding per-codepoint list construction), simplify length checks, and reuse the shared
_unicode_dots_refromidna.corein the codec module.- Use
raise ... from errfor proper exception chaining and switch internal string formatting to f-strings.- Allow
flit_core4.x in the build backend.- Expand the ruff lint set (flake8-bugbear, flake8-simplify, pyupgrade, perflint) and apply the surfaced fixes; pin lint CI to Python 3.14.
- Add Dependabot configuration for GitHub Actions.
- Convert README and HISTORY from reStructuredText to Markdown.
- Reference CVE-2026-45409 for the 3.14 advisory in place of the initial GHSA identifier.
Thanks to Felix Yan, Stan Ulbrych, and metsw24-max for contributions to this release.
3.14 (2026-05-10)
- Removed opportunity to process long inputs into quadratic time by rejecting oversize inputs up-front. Closes a bypass of the CVE-2024-3651 mitigation. [CVE-2026-45409]
Thanks to Stan Ulbrych for reporting the issue.
3.13 (2026-04-22)
- Correct classification error for codepoint U+A7F1
3.12 (2026-04-21)
- Update to Unicode 17.0.0.
- Issue a deprecation warning for the transitional argument.
- Added lazy-loading to provide some performance improvements.
- Removed vestiges of code related to Python 2 support, including segmentation of data structures specific to Jython.
Thanks to Rodrigo Nogueira for contributions to this release.
Commits
af30a09Release 3.1530314d4Pre-release 3.15rc005d4b21Merge pull request #237 from kjd/convert-docs-to-markdown2987fdbConvert README and HISTORY from reStructuredText to Markdown59fa800Merge pull request #236 from kjd/dependabot/github_actions/actions-f3e34333eadef6983Merge branch 'master' into dependabot/github_actions/actions-f3e34333eabbd8004Merge pull request #234 from StanFromIreland/patch-1edd07c0Bump github/codeql-action from 3.35.2 to 4.35.2 in the actions group5557db0Merge branch 'master' into patch-1f11746cMerge pull request #235 from StanFromIreland/patch-2- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the Security Alerts page.
在axonhub操练场可以使用,不排除cc-switch bug
帮忙先直连确认一下,是不是 minimax 本身的问题,比如不支持 tool search tool。
帮忙先直连确认一下,是不是 minimax 本身的问题,比如不支持 tool search tool。
直连可以用,tool search是一直开着的
没有 MiniMax 账号, MiniMax 充值最少需要 25 刀,放弃了.
需要帮忙贴一下失败的请求里面的执行记录,发出的请求体,或者自己看下, 哪个参数看起来有问题,欢迎 pr.
没有 MiniMax 账号, MiniMax 充值最少需要 25 刀,放弃了.
需要帮忙贴一下失败的请求里面的执行记录,发出的请求体,或者自己看下, 哪个参数看起来有问题,欢迎 pr.
curl 'https://axon.hub/v1/messages'
-H 'X-App: cli'
-H 'Accept: application/json'
-H 'Cf-Ray: 9efd651d8e566c24-PDX'
-H 'Cdn-Loop: cloudflare; loops=1'
-H 'Cf-Visitor: {"scheme":"https"}'
-H 'User-Agent: claude-cli/2.1.116 (external, cli)'
-H 'Cf-Ipcountry: JP'
-H 'Content-Type: application/json'
-H 'Authorization: ******'
-H 'Anthropic-Beta: claude-code-20250219,interleaved-thinking-2025-05-14,redact-thinking-2026-02-12,context-management-2025-06-27,prompt-caching-scope-2026-01-05,structured-outputs-2025-12-15'
-H 'Cf-Warp-Tag-Id: 1f6eb3f2-505b-4ba8-a9bc-014fc3c70b28'
-H 'X-Stainless-Os: MacOS'
-H 'X-Forwarded-For: ipv4'
-H 'Cf-Connecting-Ip: ipv4'
-H 'X-Stainless-Arch: arm64'
-H 'X-Stainless-Lang: js'
-H 'Anthropic-Version: 2023-06-01'
-H 'X-Forwarded-Proto: https'
-H 'X-Stainless-Runtime: node'
-H 'X-Stainless-Timeout: 600'
-H 'X-Stainless-Retry-Count: 0'
-H 'X-Claude-Code-Session-Id: 9f64a332-0409-4f83-aeeb-c41e1d55887a'
-H 'X-Stainless-Package-Version: 0.81.0'
-H 'X-Stainless-Runtime-Version: v24.3.0'
-H 'Anthropic-Dangerous-Direct-Browser-Access: true'
-d '{"model":"MiniMax-M2.7-highspeed","tools":[],"stream":true,"system":[{"text":"x-anthropic-billing-header: cc_version=2.1.116.d64; cc_entrypoint=cli; cch=b7a68;","type":"text"},{"text":"You are Claude Code, Anthropic'''s official CLI for Claude.","type":"text"},{"text":"Generate a concise, sentence-case title (3-7 words) that captures the main topic or goal of this coding session. The title should be clear enough that the user recognizes the session in a list. Use sentence case: capitalize only the first word and proper nouns.\n\nReturn JSON with a single "title" field.\n\nGood examples:\n{"title": "Fix login button on mobile"}\n{"title": "Add OAuth authentication"}\n{"title": "Debug failing CI tests"}\n{"title": "Refactor API client error handling"}\n\nBad (too vague): {"title": "Code changes"}\nBad (too long): {"title": "Investigate and fix the issue where the login button does not respond on mobile devices"}\nBad (wrong case): {"title": "Fix Login Button On Mobile"}","type":"text"}],"messages":[{"role":"user","content":[{"text":"不保留,train就是train,不涉及data 预处理","type":"text"}]}],"metadata":{"user_id":"{"device_id":"17b0d1f1f202618e1b4160dc488b06ca656d90e5f985564d996ce8af07d19c0e","account_uuid":"","session_id":"9f64a332-0409-4f83-aeeb-c41e1d55887a"}"},"max_tokens":32000,"temperature":1,"output_config":{"format":{"type":"json_schema","schema":{"type":"object","required":["title"],"properties":{"title":{"type":"string"}},"additionalProperties":false}}}}'
http 400 :failed to stream request: Request failed: Bad Request, error: invalid params, type: api_error
这个是发往 axonhub 的请求,需要去执行记录看,里面才是 axonhub 发往 MiniMax 的请求
这个是发往 axonhub 的请求,需要去执行记录看,里面才是 axonhub 发往 MiniMax 的请求
curl 'https://api.minimaxi.com/anthropic/v1/messages'
-H 'X-App: cli'
-H 'Accept: application/json'
-H 'X-Api-Key: ******'
-H 'User-Agent: claude-cli/2.1.116 (external, cli)'
-H 'Content-Type: application/json'
-H 'Anthropic-Beta: claude-code-20250219,interleaved-thinking-2025-05-14,redact-thinking-2026-02-12,context-management-2025-06-27,prompt-caching-scope-2026-01-05,structured-outputs-2025-12-15'
-H 'X-Stainless-Os: MacOS'
-H 'X-Stainless-Arch: arm64'
-H 'X-Stainless-Lang: js'
-H 'Anthropic-Version: 2023-06-01'
-H 'X-Stainless-Runtime: node'
-H 'X-Stainless-Timeout: 600'
-H 'X-Stainless-Retry-Count: 0'
-H 'X-Claude-Code-Session-Id: 610ff53b-2c94-40f3-a21d-21d95359409d'
-H 'X-Stainless-Package-Version: 0.81.0'
-H 'X-Stainless-Runtime-Version: v24.3.0'
-H 'Anthropic-Dangerous-Direct-Browser-Access: true'
-d '{"model":"MiniMax-M2.7-highspeed","tools":[],"stream":true,"system":[{"text":"x-anthropic-billing-header: cc_version=2.1.116.c58; cc_entrypoint=cli; cch=b7b52;","type":"text"},{"text":"You are Claude Code, Anthropic'''s official CLI for Claude.","type":"text"},{"text":"Generate a concise, sentence-case title (3-7 words) that captures the main topic or goal of this coding session. The title should be clear enough that the user recognizes the session in a list. Use sentence case: capitalize only the first word and proper nouns.\n\nReturn JSON with a single "title" field.\n\nGood examples:\n{"title": "Fix login button on mobile"}\n{"title": "Add OAuth authentication"}\n{"title": "Debug failing CI tests"}\n{"title": "Refactor API client error handling"}\n\nBad (too vague): {"title": "Code changes"}\nBad (too long): {"title": "Investigate and fix the issue where the login button does not respond on mobile devices"}\nBad (wrong case): {"title": "Fix Login Button On Mobile"}","type":"text"}],"messages":[{"role":"user","content":[{"text":"关闭已完成的task","type":"text"}]}],"metadata":{"user_id":"{"device_id":"17b0d1f1f202618e1b4160dc488b06ca656d90e5f985564d996ce8af07d19c0e","account_uuid":"","session_id":"610ff53b-2c94-40f3-a21d-21d95359409d"}"},"max_tokens":32000,"temperature":1,"output_config":{"format":{"type":"json_schema","schema":{"type":"object","required":["title"],"properties":{"title":{"type":"string"}},"additionalProperties":false}}}}'
https://github.com/MiniMax-AI/MiniMax-M2.5/issues/28
https://github.com/MiniMax-AI/MiniMax-M2.5/issues/28
不太对,只有用cc-switch反代的时候才会出现问题,直接在Claude code里面设置axonhub api就没问题
Cc-switch反代官方接口也没有问题
对了,在cc-switch中可以测试成功,但是在Claude code中无法使用cc-switch 代理的axonhub的minimax
cc-switch的测试cUrl:
curl 'https://api.minimaxi.com/anthropic/v1/messages'
-H 'X-App: cli'
-H 'Accept: application/json'
-H 'X-Api-Key: ******'
-H 'User-Agent: claude-cli/2.1.2 (external, cli)'
-H 'Content-Type: application/json'
-H 'Anthropic-Beta: claude-code-20250219,interleaved-thinking-2025-05-14'
-H 'X-Stainless-Os: MacOS'
-H 'X-Stainless-Arch: arm64'
-H 'X-Stainless-Lang: js'
-H 'Anthropic-Version: 2023-06-01'
-H 'X-Stainless-Runtime: node'
-H 'X-Stainless-Timeout: 600'
-H 'X-Stainless-Retry-Count: 0'
-H 'X-Stainless-Package-Version: 0.70.0'
-H 'X-Stainless-Runtime-Version: v22.20.0'
-H 'Anthropic-Dangerous-Direct-Browser-Access: true'
-d '{"model":"MiniMax-M2.7-highspeed","stream":true,"messages":[{"role":"user","content":"你是什么模型?"}],"max_tokens":1}'
不管过程怎么样,结果应该就是 minimax API 不支持 output config 这个参数。 可以把有问题的请求里面,去掉 output config 试试。
好像渠道选错了,选 MiniMax 渠道,而不是 anthropic 渠道。
好像渠道选错了,选 MiniMax 渠道,而不是 anthropic 渠道。
就是用的minimax,https://platform.minimaxi.com/docs/token-plan/quickstart 里面也是用的anthropic接口
渠道改为anthropic解决问题
看了下,理论上来说 anthropic 渠道和 MiniMax + messages API 格式是一模一样的,估计 是有其他潜在问题
看了下,理论上来说 anthropic 渠道和 MiniMax + messages API 格式是一模一样的,估计 是有其他潜在问题
不对,是间歇性可用?不可用?用的是claude code 渠道,是我说错了
设置了两个minimax账户,首选的那个额度耗尽之后 claude code 就无法发送消息了,但是操练场和cc-switch的测试就可以用
初步看起来是 minimax 的 openapi 接口,不支持多个 role: system 消息。 观察到 claude 提交到 hub 的数据是 anthropic 格式。 system 是数组。 渠道写的是 openapi 格式。应该转换后,messages 中出现多个 role:system,导致 minimax 异常了。
需要将 minimax 渠道的出口配置为 anthropic
所以 MiniMax 的 Anthropic 渠道是没问题的是吧。