bug: update Nebius provider for Token Factory - #1765
Draft
demianarc wants to merge 1 commit into
Draft
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.
Description:
https://api.tokenfactory.nebius.com/v1.model, so catalog changes cannot silently route requests to an unavailable model.chatCompleteParamsmodel-default assignment after its existing array guard so the new provider tests can be typechecked under the repository's strict Jest configuration.The previous Nebius provider hard-coded the retired AI Studio host and two model IDs absent from Token Factory's public catalog. The replacement keeps model selection configurable;
openai/gpt-oss-120bandQwen/Qwen3-Embedding-8Bwere also checked as current examples in the publicmodels_infofeed on 2026-08-13.Tests Run/Test cases added:
npx jest src/providers/nebius/api.test.ts src/providers/nebius/index.test.ts --runInBand— 11 passednpm run format:check— passednpm run build— passed; existing Bytez TypeScript and Rollup external/circular-dependency warnings remaingit diff --check— passednpm run test:gateway -- --runInBandis not green on upstream main: unrelated existing test paths are broken,.creds.jsonis absent, several service tests have stale signatures, and Bytez has an existing strict TypeScript diagnostic. The two new Nebius suites pass within the full run.Type of Change:
AI assistance was used to prepare the mechanical endpoint/config changes and focused tests. The diff was reviewed and validated with the checks above.