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
ad35000de3
commit
918bf385c6
@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user