-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
index.ts
26 lines (23 loc) · 894 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { logVersion010MigrationWarning } from "../util/entrypoint_deprecation.js";
/* #__PURE__ */ logVersion010MigrationWarning({
oldEntrypointName: "base_language",
newEntrypointName: "language_models/base",
newPackageName: "@langchain/core",
});
export {
type SerializedLLM,
type BaseLangChainParams,
BaseLangChain,
type BaseLanguageModelParams,
type BaseLanguageModelCallOptions,
type BaseFunctionCallOptions,
type BaseLanguageModelInput,
type BaseLanguageModelInterface,
BaseLanguageModel,
} from "@langchain/core/language_models/base";
/*
* Export utility functions for token calculations:
* - calculateMaxTokens: Calculate max tokens for a given model and prompt (the model context size - tokens in prompt).
* - getModelContextSize: Get the context size for a specific model.
*/
export { calculateMaxTokens, getModelContextSize } from "./count_tokens.js";