XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Update README.md

bfce3af7
H Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -1
Modified README.md +2 -1
@@ -425,10 +425,11 @@ client = Client(
425 425 api_key="...",
426 426 provider=GeminiPro
427 427 )
428 image = requests.get("https://example.jpg", stream=True).raw
428 429 response = client.chat.completions.create(
429 430 model="gemini-pro-vision",
430 431 messages=[{"role": "user", "content": "What are on this image?"}],
431 image=open("docs/waterfall.jpeg", "rb")
432 image=image
432 433 )
433 434 print(response.choices[0].message.content)
434 435 ```