Repository navigation
Conversation
…e-PR) SPEC Part A section A.2.8 makes the pi-ai bump its own PR, gated by `npm run check` and a `nightly-production-probe.yml` dispatch, so a failure in the post-deploy probe can be traced to the SDK and not to a model change. pi-ai 1.1.0 brings major transitive bumps (@anthropic-ai/sdk 0.91 -> 0.129, @google/genai 1 -> 2, openai 6 -> 7). Two things the bump forces, nothing else: - pi-ai 1.1.0 ships OpenRouter's Claude rows as `anthropic-messages` at https://openrouter.ai/api; this provider speaks chat-completions for every OpenRouter route, so the existing claude-sonnet-5 and claude-fable-5 routes would POST to /api/chat/completions (not an OpenRouter endpoint). The provider pins those rows to chat-completions on /api/v1; a fake-fetch test fails without it. - The auto-router estimate reads the bundled pi-ai catalog, where z-ai/glm-5.2 is 0.171 / 7.2 under 1.1.0 (it was 0.532 / 1.672 under 0.80.6). The cost-cap test moves to 7_371 micro-USD, old figures in a comment, one-micro-dollar boundary kept. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
HomenShum
force-pushed
the
claude/pi-ai-1-1-0-nodeslide
branch
from
October 16, 2026 11:10
5bdfac2 to
ef2e0d0
Compare
This branch has not been deployed
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.
Status: blocked, draft, label
needs-live-evalThis is the pre-PR that SPEC Part A section A.2.8 asks for:
@earendil-works/pi-ai0.80.6 -> 1.1.0 on its own, so that a failure in the post-deploy probe can be traced to the SDK and not to a model change. The model refresh is #203, stacked on this branch.One gate has not run, because it makes paid provider calls and this PR's author made none:
deploy-production.ymlhas deployed it:gh workflow run nightly-production-probe.yml --repo HomenShum/NodeSlide --ref main(aworkflow_dispatch; it probes every offered route and every free route once, bounded bynodeSlideModelProbeProfile, which is at most 2,048 output tokens per route). Estimated cost: well under 0.25 USD; not measured, there is no prior receipt to read it from. The label is a block, not a note (SPEC A.0.3), and the PR is a draft so the merge button is unavailable until a human marks it ready.npm run check(the other half of the gate) ran on this branch and passed; output below.What changes
package.json,mcp/package.json,package-lock.json:@earendil-works/pi-ai0.80.6 -> 1.1.0. The lockfile also moves major transitive SDKs:@anthropic-ai/sdk0.91.1 -> 0.129.0,@google/genai1.52.0 -> 2.21.0,openai6.26.0 -> 7.19.0, the@aws-sdk/*family forward, and it adds@earendil-works/pi-telemetry1.2.0 and drops@mistralai/mistralai. All of them arrive only through pi-ai.convex/lib/nodeslideProvider.ts: a fix the bump forces. pi-ai 1.1.0 ships OpenRouter's Claude rows as theanthropic-messagesAPI athttps://openrouter.ai/api. NodeSlide sends every OpenRouter route through the chat-completions client, so without the fix the existinganthropic/claude-sonnet-5andanthropic/claude-fable-5routes POST to/api/chat/completions, which is not an OpenRouter endpoint, and fail on the first call after the upgrade.asOpenRouterChatCompletionsRoutepins those rows to chat-completions on/api/v1.convex/lib/nodeslideProvider.openrouterEndpoints.test.ts(new): a fakefetchrecords the URL the real provider code builds for both Claude routes and asserts every bundled Claude row is pinned. It fails 2 of 2 without the fix (checked by removing the.map).convex/lib/nodeslideAutoRoutingPolicy.test.ts: the auto-router estimate reads the bundled pi-ai catalog, wherez-ai/glm-5.2is 0.171 / 7.2 under 1.1.0 (it was 0.532 / 1.672 under 0.80.6). The cost-cap test moves from 2,204 to 7,371 micro-USD for 1k in / 1k out, the old figures stay in a comment, and the one-micro-dollar boundary (below by 1, equal, well above) is kept. No assertion was loosened. The only other failure of the full suite on the bumped lockfile was this test (3 cases of 1).No model id, price table, default or request shape changes in this PR.
Check output (run on the head of this PR)
Merge order
Merge this PR first. #203 contains this branch (a merge commit), so after this lands #203's base becomes
mainand its diff stays the model refresh only. If this PR is squash- or rebase-merged, GitHub sees different commits onmainthan the ones #203 contains: update #203 withgit merge main; the only overlap isopenrouterProviderWithOverrides, where #203 adds.map(priceFromLedger)beside the line this PR changes.Spec: model-defaults SPEC Part A section A.2.8 (NodeSlide, Pre-PR)