openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
17 lines (16 loc) • 583 B
JavaScript
import "./defaults-CdX9UGcX.js";
import { a as resolveContextTokensForModel } from "./context-B0EuZFRZ.js";
//#region src/auto-reply/reply/model-selection-context.ts
/** Resolves the context window token count for the selected provider/model. */
function resolveContextTokens(params) {
return resolveContextTokensForModel({
cfg: params.cfg,
provider: params.provider,
model: params.model,
modelContextWindow: params.modelContextWindow,
modelContextTokens: params.modelContextTokens,
allowAsyncLoad: false
}) ?? 2e5;
}
//#endregion
export { resolveContextTokens as t };