Changeset 0.23.2 (#155)
This commit is contained in:
@@ -81,7 +81,7 @@ function updateInputTokens() {
|
||||
const budget = Tokens.getContextBudget();
|
||||
if (budget.maxContext > 0) {
|
||||
// Show relative to available context
|
||||
const chat = App.chats.find(c => c.id === App.currentChatId);
|
||||
const chat = App.chats.find(c => c.id === App.activeId);
|
||||
const convTokens = Tokens.estimateConversation(chat?.messages || [], App.settings.systemPrompt);
|
||||
// Include staged file estimates
|
||||
const fileTokens = Tokens.estimateFiles(
|
||||
@@ -114,7 +114,7 @@ function updateContextWarning() {
|
||||
return;
|
||||
}
|
||||
|
||||
const chat = App.chats.find(c => c.id === App.currentChatId);
|
||||
const chat = App.chats.find(c => c.id === App.activeId);
|
||||
if (!chat || !chat.messages?.length) {
|
||||
warning.style.display = 'none';
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user