Improve async client readme, Fix print styling, Add image api example

This commit is contained in:
Heiner Lohaus 2024-05-20 15:59:06 +02:00
parent 5115cf0e23
commit 77a1f500a8
3 changed files with 51 additions and 4 deletions

View file

@ -0,0 +1,9 @@
import requests
url = "http://localhost:1337/v1/images/generations"
body = {
"prompt": "heaven for dogs",
"provider": "OpenaiAccount",
"response_format": "b64_json",
}
data = requests.post(url, json=body, stream=True).json()
print(data)