Add debug logs to WebLLM completions
This commit is contained in:
parent
4888e3c2b0
commit
8921b78f87
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue