fix: update imports to use librechat-data-provider for token functions

Move matchModelName, findMatchingPattern, getModelMaxTokens, and
maxTokensMap imports from @librechat/api to librechat-data-provider
in CJS backend files, matching where these functions now live.
This commit is contained in:
Marco Beretta 2026-02-08 18:35:46 +01:00
parent cb6ce42815
commit ff9549e79c
No known key found for this signature in database
GPG key ID: D918033D8E74CC11
5 changed files with 19 additions and 28 deletions

View file

@ -1,6 +1,5 @@
/** Note: No hard-coded values should be used in this file. */
const { maxTokensMap } = require('@librechat/api');
const { EModelEndpoint } = require('librechat-data-provider');
const { EModelEndpoint, maxTokensMap } = require('librechat-data-provider');
const {
defaultRate,
tokenValues,