Skip to content

Fix tier ceiling with gpt models - #44

Merged
jeffreyflynt merged 1 commit into
mainfrom
tiers
Aug 23, 2026
Merged

Fix tier ceiling with gpt models#44
jeffreyflynt merged 1 commit into
mainfrom
tiers

Conversation

@jeffreyflynt

Copy link
Copy Markdown
Collaborator

[1.0.35] - 2026-08-22

Fixed

  • /v1/messages model validation (src/routes/messages.ts): detectFromModel results are now checked with instanceof AnthropicAdapter before use; requests for a non-Anthropic-compatible model now return a 400 invalid_request_error directing the caller to /v1/chat/completions instead of silently coercing the adapter type.
  • Model tier detection regexes (src/providers/tiers.ts): Tightened extractGptVersion and the openai-o-series matcher to require a boundary (- or end of string) after the version token, preventing incorrect matches on model IDs like gpt-4.15 or o35; added a fallback numeric-version parser for unrecognized gpt-* IDs instead of returning null.
  • Provider import extension (src/providers/anthropic.ts): Fixed the ./types.ts import specifier to ./types.js to match the compiled output.
  • Server hardening (src/server.ts): Fastify now sets an explicit bodyLimit of 50MB and generates request IDs via randomUUID() (genReqId) instead of the default incrementing counter.

Changed

  • Smaller production Docker image (Dockerfile): Added a prod-deps build stage that runs npm prune --omit=dev, and the final image now copies node_modules from prod-deps instead of the full deps stage. Also bumped MONGO_CRYPT_VERSION (8.3.28.3.8) and switched the aarch64 download to the ubuntu2404 enterprise build.
  • VS Code extension version and toolchain (integrations/vscode/package.json, package-lock.json, .vscode-test.cjs): Bumped extension version (1.0.251.0.26), the bundled test runner (vscode-test target 1.121.01.130.0), and dev dependencies including @types/node (25.9.1^26.2.0), @typescript/native-preview, tsdown (^0.22.2^0.22.14), and typescript (6.0.3^7.0.2).
  • Root dependency versions re-pinned and bumped (package.json): Reverted several dependencies from caret ranges back to exact pins while bumping their versions — @fastify/helmet (13.1.013.1.1), @fastify/schedule (^7.0.07.0.0), @fastify/static (^10.1.310.1.3), fastify (^5.12.05.12.1), jsonrepair (^3.15.03.15.0), mongodb-client-encryption (^7.2.17.2.1), smol-toml (^1.8.01.8.0), toad-scheduler (^4.1.04.1.0), and dev dependencies @types/node (25.9.326.2.0), @types/sinon (21.0.122.0.0), @types/ws (^8.18.18.18.1), sinon (22.0.022.1.0), tsx (4.22.44.23.12), and typescript (6.0.37.0.2).
  • Lockfile updated (package-lock.json): Regenerated to reflect the above version and toolchain bumps, including the TypeScript 7 platform-specific optional packages and updated transitive dependencies.

@jeffreyflynt jeffreyflynt self-assigned this Aug 23, 2026
@jeffreyflynt
jeffreyflynt merged commit 3e79131 into main Aug 23, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant