refactor: remove type re-exports from @librechat/api tokens

Update all imports of TokenConfig and EndpointTokenConfig to import
directly from librechat-data-provider instead of re-exporting through
packages/api/src/types/tokens.ts. Remove the now-unnecessary re-export
file and its barrel export.
This commit is contained in:
Marco Beretta 2026-02-08 17:36:44 +01:00
parent 3e9ddbf073
commit 9ff227a5b2
No known key found for this signature in database
GPG key ID: D918033D8E74CC11
12 changed files with 584 additions and 592 deletions

View file

@ -1,10 +1,10 @@
import { useEffect, useMemo } from 'react';
import { useParams } from 'react-router-dom';
import { useSetAtom, useAtomValue } from 'jotai';
import { getModelMaxTokens, isAgentsEndpoint } from 'librechat-data-provider';
import { isAgentsEndpoint, getModelMaxTokens } from 'librechat-data-provider';
import type { TMessage } from 'librechat-data-provider';
import { tokenUsageAtom, type TokenUsage } from '~/store/tokenUsage';
import { useGetMessagesByConvoId, useGetAgentByIdQuery } from '~/data-provider';
import { tokenUsageAtom, type TokenUsage } from '~/store/tokenUsage';
import { useChatContext } from '~/Providers';
/**