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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user