123456789101112131415161718192021222324252627 |
- from g4f.client import Client
- from g4f.Provider import Reka
- client = Client(
- provider = Reka
- )
- completion = client.chat.completions.create(
- model = "reka-core",
- messages = [
- {
- "role": "user",
- "content": "What can you see in the image ?"
- }
- ],
- stream = True,
- image = open("test.png", "rb")
- )
- for message in completion:
- print(message.choices[0].delta.content or "")
-
-
|