mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-20 04:47:55 +00:00
Update DOC.md
This commit is contained in:
parent
918bf385c6
commit
1f5484f010
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
2. Initialize in your JavaScript:
|
2. Initialize in your JavaScript:
|
||||||
```javascript
|
```javascript
|
||||||
const ttiClient = new LollmsTTI();
|
const ttiClient = new LollmsTTI();// You can also add a parameter BaseUrl which is by default "http://localhost:9600"
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Generate and display an image:
|
3. Generate and display an image:
|
||||||
@ -22,5 +22,10 @@
|
|||||||
// Use base64Image
|
// Use base64Image
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
5. To change the server base url, we can use:
|
||||||
|
```javascript
|
||||||
|
ttiClient.setBaseUrl("http://localhost:9600"); // Change to the right server address
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
This library simplifies image generation requests to the LoLLMs backend, handling the API call and image display.
|
This library simplifies image generation requests to the LoLLMs backend, handling the API call and image display.
|
Loading…
Reference in New Issue
Block a user