mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-03-23 04:15:16 +00:00
Update lollms_client_js.js
This commit is contained in:
parent
1e503afa78
commit
d25ae58b6b
@ -772,7 +772,7 @@ async generateCode(
|
||||
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. Don't forget to put the code inside a markdown code tag." + this.separatorTemplate() + this.aiFullHeader;
|
||||
const continuePrompt = prompt + self.separator_template + code + self.separator_template + this.user_message() + "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(continuePrompt, {
|
||||
n_predict: n_predict,
|
||||
temperature: temperature,
|
||||
@ -844,7 +844,7 @@ async generateCodes(prompt, images = [], {
|
||||
|
||||
while (!currentCode.is_complete) {
|
||||
console.warn("The AI did not finish the code, let's ask it to continue");
|
||||
const continuePrompt = prompt + codeContent + this.userFullHeader + "continue the code. Rewrite last line and continue the code." + this.separatorTemplate() + this.aiFullHeader;
|
||||
const continuePrompt = prompt + self.separator_template + codeContent + self.separator_template + this.user_message() + "continue the code. Rewrite last line and continue the code." + this.separatorTemplate() + this.aiFullHeader;
|
||||
|
||||
response = await this.generate(continuePrompt, {
|
||||
n_predict,
|
||||
|
Loading…
x
Reference in New Issue
Block a user