Changeset 0.17.2 (#77)
This commit is contained in:
@@ -69,8 +69,7 @@ function updateInputTokens() {
|
||||
const el = document.getElementById('inputTokenCount');
|
||||
if (!el) return;
|
||||
|
||||
const input = document.getElementById('messageInput');
|
||||
const inputText = input?.value || '';
|
||||
const inputText = (typeof ChatInput !== 'undefined') ? ChatInput.getValue() : '';
|
||||
const inputTokens = Tokens.estimate(inputText);
|
||||
|
||||
if (!inputText.trim()) {
|
||||
|
||||
Reference in New Issue
Block a user