Skip to content

Commit 51ee836

Browse files
committed
docs: add docs for gpt4v
1 parent cb9edc7 commit 51ee836

File tree

2 files changed

+44
-25
lines changed

2 files changed

+44
-25
lines changed

README.md

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -77,31 +77,7 @@ gpt-3.5-turbo:yi-34b-chat,gpt-4:yi-34b-chat
7777

7878
### GPT4 Vision
7979

80-
81-
如果你已经拥有了 Azure GPT4 Vision,并且想要使用 OpenAI API 的接口格式来进行调用,我们可以在使用 `azure` 服务类型时,设置 `AZURE_VISION` 的数值为 `true|1|on|yes` 任意值,激活 Vision API。
82-
83-
```bash
84-
AZURE_VISION=true
85-
```
86-
87-
调用方法很简单,除了使用 SDK 之外,同样可以使用 `curl`
88-
89-
```bash
90-
curl -v http://127.0.0.1:8080/v1/chat/completions \
91-
-H "Content-Type: application/json" \
92-
-H "Authorization: Bearer 123" \
93-
-d '{
94-
"model": "gpt-4v",
95-
"messages":[
96-
{"role":"system","content":"You are a helpful assistant."},
97-
{"role":"user","content":[
98-
{"type":"text","text":"Describe this picture:"},
99-
{ "type": "image_url", "image_url": { "url": "https://learn.microsoft.com/azure/ai-services/computer-vision/media/quickstarts/presentation.png", "detail": "high" }}
100-
]}
101-
]
102-
}'
103-
```
104-
80+
如果你已经拥有了 Azure GPT Vision,除了使用 SDK 调用之外,你也可以参考这篇文档,使用 `curl` 进行调用:[GPT Vision](./example/gpt-vision.md)
10581

10682
## 容器快速上手
10783

0 commit comments

Comments
 (0)