@bastani/pi-ai 0.9.81-alpha.1 → 0.9.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,34 @@ This package is a Bastani fork of `@earendil-works/pi-ai`. Upstream history at t
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.9.81] - 2026-11-13
8
+
9
+ Qwen Token Plan moves to its current gateways, and tool schemas and Google requests fail less often.
10
+
11
+ - **Current Qwen Token Plan gateways.** The Team providers use the current hosts, the Individual providers gain `deepseek-v4.1-flash` models, and each plan can have its own API key variable (upstream [#11773](https://github.com/earendil-works/pi/issues/11773), [#12112](https://github.com/earendil-works/pi/pull/12112)).
12
+ - **Fewer rejected tool calls.** Tools whose schemas cannot be strict fall back to non-strict mode instead of drawing a 400 from OpenAI, and non-strict Anthropic schemas keep their root `additionalProperties` (upstream [#12049](https://github.com/earendil-works/pi/issues/12049), [#12100](https://github.com/earendil-works/pi/pull/12100)).
13
+ - **Steadier Google and retry handling.** Google adapters accept a custom `fetch` and end `CONTINUATION` turns cleanly, and `"Connection closed."` errors count as retryable (upstream [#12103](https://github.com/earendil-works/pi/pull/12103), [#12108](https://github.com/earendil-works/pi/pull/12108), [#12093](https://github.com/earendil-works/pi/pull/12093)).
14
+
15
+ ### Added
16
+
17
+ - Added `deepseek-v4.1-flash` and `deepseek-v4.1-flash-1017` to the Qwen Token Plan Individual providers, and per-plan key variables `QWEN_TOKEN_PLAN_TEAM_API_KEY`, `QWEN_TOKEN_PLAN_TEAM_CN_API_KEY`, `QWEN_TOKEN_PLAN_INDIVIDUAL_API_KEY`, and `QWEN_TOKEN_PLAN_INDIVIDUAL_CN_API_KEY`; the shared `QWEN_TOKEN_PLAN_API_KEY` and `QWEN_TOKEN_PLAN_CN_API_KEY` still work as fallbacks (upstream [#11773](https://github.com/earendil-works/pi/issues/11773), [#12112](https://github.com/earendil-works/pi/pull/12112))
18
+
19
+ ### Changed
20
+
21
+ - Updated `@google/genai` to 2.32.0 with automatic continuation turned off, so a `CONTINUATION` finish reason ends the turn with stop reason `length` (upstream [#12103](https://github.com/earendil-works/pi/pull/12103), [#12108](https://github.com/earendil-works/pi/pull/12108))
22
+ - Qwen Token Plan providers now use the current gateways (`token-plan.maas.qwencloudapi.com` international, `token-plan.maas.qianwenaiapi.com` China), and `qwen-token-plan` and `qwen-token-plan-cn` are named "Qwen Token Plan Team" and "Qwen Token Plan Team CN". Provider IDs are unchanged, and the old `aliyuncs.com` hosts still work (upstream [#11773](https://github.com/earendil-works/pi/issues/11773), [#12112](https://github.com/earendil-works/pi/pull/12112))
23
+
24
+ ### Fixed
25
+
26
+ - Fixed tools with `strict: "prefer"` constrained sampling being sent in strict mode when their schema contains a node without a `type`, such as `items: {}`, `Type.Unknown()`, or a bare `const`, which OpenAI rejects with a 400 error; these tools now fall back to non-strict mode, `strict: "require"` fails locally, and nodes with only an `enum` stay strict. Non-strict Anthropic tool schemas, including those that fell back from `strict: "prefer"`, also keep their root `additionalProperties` keyword instead of dropping it (upstream [#12049](https://github.com/earendil-works/pi/issues/12049), [#12100](https://github.com/earendil-works/pi/pull/12100))
27
+ - Fixed provider errors reading `"Connection closed."` not being classified as retryable (upstream [#12093](https://github.com/earendil-works/pi/pull/12093))
28
+ - Fixed the `google-generative-ai` and `google-vertex` adapters rejecting a custom `fetch` option instead of forwarding it through `httpOptions.fetch`, and kept the global undici dispatcher's idle timeouts active when no custom `fetch` is supplied; Vertex ADC token requests still use `google-auth-library`'s own HTTP client (upstream [#12103](https://github.com/earendil-works/pi/pull/12103), [#12108](https://github.com/earendil-works/pi/pull/12108))
29
+
30
+ ### Removed
31
+
32
+ - Removed the unused `mapStopReasonString` export from `@bastani/pi-ai/api/google-shared` (upstream [#12103](https://github.com/earendil-works/pi/pull/12103))
33
+ - Removed the retired `deepseek-v3.2` and `deepseek-v4-flash` from the Qwen Token Plan Team providers; use `deepseek-v4-flash-0731` or `deepseek-v4.1-flash` (upstream [#11773](https://github.com/earendil-works/pi/issues/11773), [#12112](https://github.com/earendil-works/pi/pull/12112))
34
+
7
35
  ## [0.9.81-alpha.1] - 2026-11-13
8
36
 
9
37
  ### Added
@@ -1 +1 @@
1
- {"schemaVersion":6,"generatedAt":"2026-11-13T01:42:54.063Z","structureHash":"3666d9c9715d61e35a9748ff6c0d7697ed7f898852cd609476d2d59ffacc9d5b","files":{"amazon-bedrock.json":"fa1097acc81fe1c04d10b69ff2f7982b5b24e9565348836c393262a884a46f2e","ant-ling.json":"628feab3ef6c7d80ce96f75999804e1d9f05fec3851e5302e30fff3b69db90f6","anthropic.json":"bcb41bae2d7b1f499903851cdadf3119cb58bf9c9fd434203a89f458746b2d06","azure.json":"3857360054d41814cf9623db124dcb3d784c244c9720a890c39d9fe4731cbae7","baseten.json":"47d10c8050601eb88757def4fc957cdba769dacec4aeb3b0c3f39c41e442330e","cerebras.json":"2eb969b2956844f9a641d3de52c19f1791293c58f607282fb3b0ebfe85ff66f8","cloudflare-ai-gateway.json":"048b67d2ca43cd02689cb90aa4555afec63ec4cc14a46db0f98e265689432eca","cloudflare-workers-ai.json":"0dc5eda87ff6de3ee75ee6d547a60162319bb2d51ed09b1e7d47d8ae9ef8548e","deepseek.json":"10a296fb3e898f7715c80890c8af0af4f5fd58f22dbcd6612fdc5d762157ccdc","fireworks.json":"8a5b946e0fbfd1889570591f50a8e38bd01b19fe83135b23dca66138c3ad8f8c","github-copilot.json":"0d8c77798b69a19fa28ebab73c61f68e1bd6bad3c7185a6be7f6eae5702223f1","google-vertex.json":"25a1cdc497aacb70be85ee50888c688d436ccec6fe31fac74d63ee7049e68e94","google.json":"77aad410bfbfbd2de791e4e267a9c1a895ec7955f227f898ef59bd34344080a4","groq.json":"087df37206e9eed8b10f1e558e4c496289bef60074b7e8afba4f20fb102b4ec2","huggingface.json":"209cdcf205961ef2ff203486da614232a86a069ebe0e98266189a14a235fac8f","kimi-coding.json":"e6d5bce9045cf533ca9e0d563a7d30a6a1ed48c89a0f539ed4c9d3ac53d4ac8b","meta.json":"6ccc391fc86586638b4a2f26420f0e4763fccce04d746665cbd55f477124bb3b","minimax-cn.json":"fa15d1f67a07046d38e191af9bd97ed922ba45a99a11af4ad281151cc6b762aa","minimax.json":"1e0459dda3858ea24151182106fc4179b95f43a0a8dffc1c3d2e7db4c2d9206e","mistral.json":"7e67f69ac2b609fca9f7b721243fb70fa6f4feade3cb20eedcd5786f9eac64f1","moonshotai-cn.json":"1a15468b1edf9205956e4c5ea41fc4cacc14eabf00523b9143e23a38264f57f7","moonshotai.json":"f31cdf2e6c81a403c4cb0e6b7e759ceff2820f966b08dbec80cfafa3f80dfc63","nvidia.json":"33afb8395f93eb07e88d4026775d471a6457b77134fd45cdb09b822b80cfae08","openai-codex.json":"79856e655a4cdf5ad32f178dd001cbfda5d13e68006ad8aade0bc3636f5faabb","openai-decisions.json":"0c7d54fcbac5e7388872a85c0db7f336c5a57c82d403266e9ae04f87561daf4f","openai-images.json":"95e906730507ae8adcd49afa81fc21f7cee13c12842a71ba04ab62c59637bdb6","openai.json":"c51bffed14b4bdfb15fbffef068a9c07e973d36dd7490397d5bb7d00483752b3","opencode-go.json":"c324bb5babb5e7a5ddfedc1c2d63ae6f2fb0b0966decee6a102f5f6d22319074","opencode.json":"395383a87d334883cda7bf507083e00a4f6df0bc6f8f189b7ba762c29db73415","openrouter.json":"59fb781f128de9e5c07a9abbf4101206f06ee4a64111a57982360eb3315f1e1a","qwen-token-plan-cn.json":"acdcd16ff61cb48856c60f3190e32574546ffb5a7f1fd7fe4c759ad83f217082","qwen-token-plan-individual-cn.json":"50e4cc19f732a3f57813af5da0b908ebf26ff907f09f0f32f64d6c102866fc66","qwen-token-plan-individual.json":"d48740c24107d42b952dd1c4fbbc09cb9d85c5f439ded3e92b7b462e97f8e38f","qwen-token-plan.json":"4018b952fae26a99eb296e2846c74ee4e919d4cd50ef0c564655b95dccffa203","radius.json":"067dbec07d4ae9f853232d0d13ec88aced00ea666d8d3fe23865de2417d22b5b","together.json":"cd63c051ea61bdb210c6e826e5fc892e4c1f9c9c0ab6eb91933a0620701d17e1","typesafe.json":"938c89dfb6f636dce1483ec6acc739af4b881f61003d007807a74414eb2bf357","vercel-ai-gateway.json":"98f62935bfd776ca5359fcc867edde1f981720e534baeaeae8ee975e34507f5b","xai.json":"59f8a7bdf14e79ba1b0d0a37e56251bbf100420bdac7d6af5942508fdb990f11","xiaomi-token-plan-ams.json":"bfd33741da693bdb8e8ebd4e7b90c3e90820aa18432ad081a5a98db13c6bd296","xiaomi-token-plan-cn.json":"4b61d78feae3a926fda918c3fd3a9afaf2ca60c1bba0af8270a5398fb50a983e","xiaomi-token-plan-sgp.json":"b05a197ce24fd69fc9440f4ba929984ac7a0fefbe8083268734b422e721987ec","xiaomi.json":"495b5fddf3c3ec8904fecc15c4c19536f4961dce7b51512b6909d2df2e739824","zai-coding-cn.json":"cc9e0768e726ef55d2b7af853ac5f3585dc72575932cb38840a3877d18736b78","zai.json":"58e6642fdfb736f0b9a4a277c760c536a3cea66a030abbfb2615f7b2851d5c6f"}}
1
+ {"schemaVersion":6,"generatedAt":"2026-11-13T02:05:16.071Z","structureHash":"3666d9c9715d61e35a9748ff6c0d7697ed7f898852cd609476d2d59ffacc9d5b","files":{"amazon-bedrock.json":"fa1097acc81fe1c04d10b69ff2f7982b5b24e9565348836c393262a884a46f2e","ant-ling.json":"628feab3ef6c7d80ce96f75999804e1d9f05fec3851e5302e30fff3b69db90f6","anthropic.json":"bcb41bae2d7b1f499903851cdadf3119cb58bf9c9fd434203a89f458746b2d06","azure.json":"3857360054d41814cf9623db124dcb3d784c244c9720a890c39d9fe4731cbae7","baseten.json":"47d10c8050601eb88757def4fc957cdba769dacec4aeb3b0c3f39c41e442330e","cerebras.json":"2eb969b2956844f9a641d3de52c19f1791293c58f607282fb3b0ebfe85ff66f8","cloudflare-ai-gateway.json":"048b67d2ca43cd02689cb90aa4555afec63ec4cc14a46db0f98e265689432eca","cloudflare-workers-ai.json":"0dc5eda87ff6de3ee75ee6d547a60162319bb2d51ed09b1e7d47d8ae9ef8548e","deepseek.json":"10a296fb3e898f7715c80890c8af0af4f5fd58f22dbcd6612fdc5d762157ccdc","fireworks.json":"8a5b946e0fbfd1889570591f50a8e38bd01b19fe83135b23dca66138c3ad8f8c","github-copilot.json":"0d8c77798b69a19fa28ebab73c61f68e1bd6bad3c7185a6be7f6eae5702223f1","google-vertex.json":"25a1cdc497aacb70be85ee50888c688d436ccec6fe31fac74d63ee7049e68e94","google.json":"77aad410bfbfbd2de791e4e267a9c1a895ec7955f227f898ef59bd34344080a4","groq.json":"087df37206e9eed8b10f1e558e4c496289bef60074b7e8afba4f20fb102b4ec2","huggingface.json":"209cdcf205961ef2ff203486da614232a86a069ebe0e98266189a14a235fac8f","kimi-coding.json":"e6d5bce9045cf533ca9e0d563a7d30a6a1ed48c89a0f539ed4c9d3ac53d4ac8b","meta.json":"6ccc391fc86586638b4a2f26420f0e4763fccce04d746665cbd55f477124bb3b","minimax-cn.json":"fa15d1f67a07046d38e191af9bd97ed922ba45a99a11af4ad281151cc6b762aa","minimax.json":"1e0459dda3858ea24151182106fc4179b95f43a0a8dffc1c3d2e7db4c2d9206e","mistral.json":"7e67f69ac2b609fca9f7b721243fb70fa6f4feade3cb20eedcd5786f9eac64f1","moonshotai-cn.json":"1a15468b1edf9205956e4c5ea41fc4cacc14eabf00523b9143e23a38264f57f7","moonshotai.json":"f31cdf2e6c81a403c4cb0e6b7e759ceff2820f966b08dbec80cfafa3f80dfc63","nvidia.json":"33afb8395f93eb07e88d4026775d471a6457b77134fd45cdb09b822b80cfae08","openai-codex.json":"79856e655a4cdf5ad32f178dd001cbfda5d13e68006ad8aade0bc3636f5faabb","openai-decisions.json":"0c7d54fcbac5e7388872a85c0db7f336c5a57c82d403266e9ae04f87561daf4f","openai-images.json":"95e906730507ae8adcd49afa81fc21f7cee13c12842a71ba04ab62c59637bdb6","openai.json":"c51bffed14b4bdfb15fbffef068a9c07e973d36dd7490397d5bb7d00483752b3","opencode-go.json":"c324bb5babb5e7a5ddfedc1c2d63ae6f2fb0b0966decee6a102f5f6d22319074","opencode.json":"395383a87d334883cda7bf507083e00a4f6df0bc6f8f189b7ba762c29db73415","openrouter.json":"eaa2893c3fa2297441e9eff07bceee64aee7b732557fe1b86214981b9d6e8a75","qwen-token-plan-cn.json":"acdcd16ff61cb48856c60f3190e32574546ffb5a7f1fd7fe4c759ad83f217082","qwen-token-plan-individual-cn.json":"50e4cc19f732a3f57813af5da0b908ebf26ff907f09f0f32f64d6c102866fc66","qwen-token-plan-individual.json":"d48740c24107d42b952dd1c4fbbc09cb9d85c5f439ded3e92b7b462e97f8e38f","qwen-token-plan.json":"4018b952fae26a99eb296e2846c74ee4e919d4cd50ef0c564655b95dccffa203","radius.json":"067dbec07d4ae9f853232d0d13ec88aced00ea666d8d3fe23865de2417d22b5b","together.json":"cd63c051ea61bdb210c6e826e5fc892e4c1f9c9c0ab6eb91933a0620701d17e1","typesafe.json":"938c89dfb6f636dce1483ec6acc739af4b881f61003d007807a74414eb2bf357","vercel-ai-gateway.json":"98f62935bfd776ca5359fcc867edde1f981720e534baeaeae8ee975e34507f5b","xai.json":"59f8a7bdf14e79ba1b0d0a37e56251bbf100420bdac7d6af5942508fdb990f11","xiaomi-token-plan-ams.json":"bfd33741da693bdb8e8ebd4e7b90c3e90820aa18432ad081a5a98db13c6bd296","xiaomi-token-plan-cn.json":"4b61d78feae3a926fda918c3fd3a9afaf2ca60c1bba0af8270a5398fb50a983e","xiaomi-token-plan-sgp.json":"b05a197ce24fd69fc9440f4ba929984ac7a0fefbe8083268734b422e721987ec","xiaomi.json":"495b5fddf3c3ec8904fecc15c4c19536f4961dce7b51512b6909d2df2e739824","zai-coding-cn.json":"cc9e0768e726ef55d2b7af853ac5f3585dc72575932cb38840a3877d18736b78","zai.json":"58e6642fdfb736f0b9a4a277c760c536a3cea66a030abbfb2615f7b2851d5c6f"}}