mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-11 03:54:23 +01:00
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:
parent
cb6ce42815
commit
ff9549e79c
5 changed files with 19 additions and 28 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue