Update Usage.md: fixing 1 typo + 1 spelling

Update Usage.md: fixing 1 typo + 1 spelling
This commit is contained in:
Didier Durand
2024-05-31 18:23:20 +02:00
committed by GitHub
parent b141897da4
commit aef0a56016

View File

@@ -109,7 +109,7 @@ curl $OPENAI_BASE_URL/chat/completions \
"content": [ "content": [
{ {
"type": "text", "type": "text",
"text": "please identify and count all the objects in this images, list all the names" "text": "please identify and count all the objects in these images, list all the names"
}, },
{ {
"type": "image_url", "type": "image_url",
@@ -124,7 +124,7 @@ curl $OPENAI_BASE_URL/chat/completions \
``` ```
If you need to use this API with non-public images, you can do base64 the image first and pass the encoded string. If you need to use this API with non-public images, you can do base64 the image first and pass the encoded string.
Replace `image/jpeg` with the actual content type. Currently, Only 'image/jpeg', 'image/png', 'image/gif' or 'image/webp' is supported. Replace `image/jpeg` with the actual content type. Currently, only 'image/jpeg', 'image/png', 'image/gif' or 'image/webp' is supported.
```bash ```bash
curl $OPENAI_BASE_URL/chat/completions \ curl $OPENAI_BASE_URL/chat/completions \
@@ -282,4 +282,4 @@ curl $OPENAI_BASE_URL/chat/completions \
You can try it with different questions, such as: You can try it with different questions, such as:
1. Hello, who are you? (No tools are needed) 1. Hello, who are you? (No tools are needed)
2. What is the weather like today? (Should use get_current_location tool first) 2. What is the weather like today? (Should use get_current_location tool first)