mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
fixed a bug in lollms_client.js
This commit is contained in:
parent
4c2b2714f3
commit
499119380b
@ -595,7 +595,7 @@ async generateCode(prompt, images = [], {
|
||||
code = codes[0].content.split('\n').slice(0, -1).join('\n');
|
||||
while (!codes[0].is_complete) {
|
||||
console.warn("The AI did not finish the code, let's ask it to continue")
|
||||
const continuePrompt = prompt + code + this.userFullHeader + "continue the code. Rewrite last line and continue the code." + this.separatorTemplate() + this.aiFullHeader;
|
||||
const continuePrompt = prompt + code + this.userFullHeader + "continue the code. Rewrite last line and continue the code. Don't forget to put the code inside a markdown code tag." + this.separatorTemplate() + this.aiFullHeader;
|
||||
response = await this.generate(fullPrompt, {
|
||||
n_predict: n_predict,
|
||||
temperature: temperature,
|
||||
|
Loading…
Reference in New Issue
Block a user