summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-04-27 15:45:57 +0200
committerGitHub <noreply@github.com>2024-04-27 15:45:57 +0200
commit5575031f0975b31e53988c58bf8c5bb1735c6d91 (patch)
tree8ede3885c7f3add4c262ae141f4c2e314cb387fa /README.md
parentMerge pull request #1891 from eienmojiki206/main (diff)
parentUpdate reka vision (diff)
downloadgpt4free-5575031f0975b31e53988c58bf8c5bb1735c6d91.tar
gpt4free-5575031f0975b31e53988c58bf8c5bb1735c6d91.tar.gz
gpt4free-5575031f0975b31e53988c58bf8c5bb1735c6d91.tar.bz2
gpt4free-5575031f0975b31e53988c58bf8c5bb1735c6d91.tar.lz
gpt4free-5575031f0975b31e53988c58bf8c5bb1735c6d91.tar.xz
gpt4free-5575031f0975b31e53988c58bf8c5bb1735c6d91.tar.zst
gpt4free-5575031f0975b31e53988c58bf8c5bb1735c6d91.zip
Diffstat (limited to 'README.md')
-rw-r--r--README.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6c8e3ef5..7b8e87b6 100644
--- a/README.md
+++ b/README.md
@@ -413,9 +413,26 @@ While we wait for gpt-5, here is a list of new models that are at least better t
| Gemini API | `g4f.Provider.GeminiPro` | ❌ | gemini-1.5-pro | [ai.google.dev](https://ai.google.dev) |
| Meta AI | `g4f.Provider.MetaAI` | ✔️ | ❌ | [meta.ai](https://www.meta.ai) |
| OpenAI ChatGPT | `g4f.Provider.OpenaiChat` | dall-e-3 | gpt-4-vision | [chat.openai.com](https://chat.openai.com) |
+| Reka | `g4f.Provider.Reka` | ❌ | ✔️ | [chat.reka.ai](https://chat.reka.ai/) |
| Replicate | `g4f.Provider.Replicate` | stability-ai/sdxl| llava-v1.6-34b | [replicate.com](https://replicate.com) |
| You.com | `g4f.Provider.You` | dall-e-3| ✔️ | [you.com](https://you.com) |
+```python
+from g4f.client import Client
+from g4f.Provider.GeminiPro import GeminiPro
+
+client = Client(
+ api_key="...",
+ provider=GeminiPro
+)
+response = client.chat.completions.create(
+ model="gemini-pro-vision",
+ messages=[{"role": "user", "content": "What are on this image?"}],
+ image=open("docs/waterfall.jpeg", "rb")
+)
+print(response.choices[0].message.content)
+```
+
## 🔗 Powered by gpt4free
<table>