Update DOC.md

This commit is contained in:
Saifeddine ALOUI 2024-09-27 11:07:45 +02:00 committed by GitHub
parent 918bf385c6
commit 1f5484f010
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,7 +6,7 @@
2. Initialize in your 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:
@ -22,5 +22,10 @@
// 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.