Add debug logs to WebLLM completions

This commit is contained in:
Cohee 2024-08-13 19:57:38 +03:00
parent 4888e3c2b0
commit 8921b78f87
1 changed files with 2 additions and 0 deletions

View File

@ -223,8 +223,10 @@ export async function generateWebLlmChatPrompt(messages, params = {}) {
throw new Error('WebLLM extension is not installed.');
}
console.debug('WebLLM chat completion request:', messages, params);
const engine = SillyTavern.llm;
const response = await engine.generateChatPrompt(messages, params);
console.debug('WebLLM chat completion response:', response);
return response;
}