mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
Update lollms_tti.js
This commit is contained in:
parent
d10cdf31c6
commit
fc92830006
@ -6,7 +6,12 @@ class LollmsTTI {
|
||||
setBaseUrl(baseUrl){
|
||||
this.baseUrl = baseUrl;
|
||||
}
|
||||
|
||||
updateSettings(settings) {
|
||||
// Update each setting if it's provided in the settings object
|
||||
if ('host_address' in settings) this.baseUrl = settings.host_address;
|
||||
if ('baseUrl' in settings) this.baseUrl = settings.baseUrl;
|
||||
}
|
||||
|
||||
async generateImage(prompt, negativePrompt = '', width = 512, height = 512) {
|
||||
const url = `${this.baseUrl}/generate_image`;
|
||||
const requestBody = {
|
||||
|
Loading…
Reference in New Issue
Block a user