Update lollms_tti.js

This commit is contained in:
Saifeddine ALOUI 2024-09-27 10:55:29 +02:00 committed by GitHub
parent ad35000de3
commit 918bf385c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,10 @@ class LollmsTTI {
constructor(baseUrl = 'http://localhost:9600') {
this.baseUrl = baseUrl;
}
setBaseUrl(baseUrl){
this.baseUrl = baseUrl;
}
async generateImage(prompt, negativePrompt = '', width = 512, height = 512) {
const url = `${this.baseUrl}/generate_image`;
@ -52,4 +56,4 @@ class LollmsTTI {
}
}
}