Fix tier ceiling with gpt models - #44
Merged
Merged
Conversation
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.
[1.0.35] - 2026-08-22
Fixed
/v1/messagesmodel validation (src/routes/messages.ts):detectFromModelresults are now checked withinstanceof AnthropicAdapterbefore use; requests for a non-Anthropic-compatible model now return a400 invalid_request_errordirecting the caller to/v1/chat/completionsinstead of silently coercing the adapter type.src/providers/tiers.ts): TightenedextractGptVersionand theopenai-o-seriesmatcher to require a boundary (-or end of string) after the version token, preventing incorrect matches on model IDs likegpt-4.15oro35; added a fallback numeric-version parser for unrecognizedgpt-*IDs instead of returningnull.src/providers/anthropic.ts): Fixed the./types.tsimport specifier to./types.jsto match the compiled output.src/server.ts): Fastify now sets an explicitbodyLimitof 50MB and generates request IDs viarandomUUID()(genReqId) instead of the default incrementing counter.Changed
Dockerfile): Added aprod-depsbuild stage that runsnpm prune --omit=dev, and the final image now copiesnode_modulesfromprod-depsinstead of the fulldepsstage. Also bumpedMONGO_CRYPT_VERSION(8.3.2→8.3.8) and switched the aarch64 download to theubuntu2404enterprise build.integrations/vscode/package.json,package-lock.json,.vscode-test.cjs): Bumped extension version (1.0.25→1.0.26), the bundled test runner (vscode-testtarget1.121.0→1.130.0), and dev dependencies including@types/node(25.9.1→^26.2.0),@typescript/native-preview,tsdown(^0.22.2→^0.22.14), andtypescript(6.0.3→^7.0.2).package.json): Reverted several dependencies from caret ranges back to exact pins while bumping their versions —@fastify/helmet(13.1.0→13.1.1),@fastify/schedule(^7.0.0→7.0.0),@fastify/static(^10.1.3→10.1.3),fastify(^5.12.0→5.12.1),jsonrepair(^3.15.0→3.15.0),mongodb-client-encryption(^7.2.1→7.2.1),smol-toml(^1.8.0→1.8.0),toad-scheduler(^4.1.0→4.1.0), and dev dependencies@types/node(25.9.3→26.2.0),@types/sinon(21.0.1→22.0.0),@types/ws(^8.18.1→8.18.1),sinon(22.0.0→22.1.0),tsx(4.22.4→4.23.12), andtypescript(6.0.3→7.0.2).package-lock.json): Regenerated to reflect the above version and toolchain bumps, including the TypeScript 7 platform-specific optional packages and updated transitive dependencies.