diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-04-28 22:58:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-28 22:58:27 +0200 |
commit | bfce3af7a5e48cb16645fb43104ede8a9edaddae (patch) | |
tree | e4ca3f258abcdf1b573312cd3e8a0b3ae15978e6 | |
parent | Merge pull request #1908 from KPCOFGS/main (diff) | |
download | gpt4free-bfce3af7a5e48cb16645fb43104ede8a9edaddae.tar gpt4free-bfce3af7a5e48cb16645fb43104ede8a9edaddae.tar.gz gpt4free-bfce3af7a5e48cb16645fb43104ede8a9edaddae.tar.bz2 gpt4free-bfce3af7a5e48cb16645fb43104ede8a9edaddae.tar.lz gpt4free-bfce3af7a5e48cb16645fb43104ede8a9edaddae.tar.xz gpt4free-bfce3af7a5e48cb16645fb43104ede8a9edaddae.tar.zst gpt4free-bfce3af7a5e48cb16645fb43104ede8a9edaddae.zip |
Diffstat (limited to '')
-rw-r--r-- | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -425,10 +425,11 @@ client = Client( api_key="...", provider=GeminiPro ) +image = requests.get("https://example.jpg", stream=True).raw response = client.chat.completions.create( model="gemini-pro-vision", messages=[{"role": "user", "content": "What are on this image?"}], - image=open("docs/waterfall.jpeg", "rb") + image=image ) print(response.choices[0].message.content) ``` |