fix: get context windows from server (#787)

Co-authored-by: cpacker <packercharles@gmail.com>
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Ari Webb
2026-02-03 16:15:09 -08:00
committed by GitHub
parent be8ae56abe
commit e411940d5c
4 changed files with 20 additions and 8 deletions

View File

@@ -8823,7 +8823,7 @@ ${SYSTEM_REMINDER_CLOSE}
const { getModelContextWindow } = await import(
"../agent/available-models"
);
const apiContextWindow = getModelContextWindow(modelId);
const apiContextWindow = await getModelContextWindow(modelId);
selectedModel = {
id: modelId,