update readme

This commit is contained in:
Varshith
2024-07-28 16:14:27 +05:30
parent acc94b50c7
commit 8d3d3df1dd
+25 -1
View File
@@ -111,7 +111,7 @@ The native way to access models running on exo is using the exo library with pee
exo starts a ChatGPT-like WebUI (powered by [tinygrad tinychat](https://github.com/tinygrad/tinygrad/tree/master/examples/tinychat)) on http://localhost:8000
For developers, exo also starts a ChatGPT-compatible API endpoint on http://localhost:8000/v1/chat/completions. Example with curl:
For developers, exo also starts a ChatGPT-compatible API endpoint on http://localhost:8000/v1/chat/completions. Example with curls:
```sh
curl http://localhost:8000/v1/chat/completions \
@@ -123,6 +123,30 @@ curl http://localhost:8000/v1/chat/completions \
}'
```
```sh
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "llava-1.5-7b-hf",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "What are these?"
},
{
"type": "image",
"image": "http://images.cocodataset.org/val2017/000000039769.jpg"
}
]
}
],
"temperature": 0.0
}'
```
## Debugging
Enable debug logs with the DEBUG environment variable (0-9).