-
`from g4f.client import Client
client = Client()
response = client.images.generate(
model="gemini",
prompt="a white siamese cat",
)
image_url = response.data[0].url`
I used this sam…
-
## Motivation
Model from API providers should be more clarifier
## Specs
https://www.notion.so/jan-ai/Refactoring-of-Remote-API-Extensions-Mistral-Cohere-etc-8638a1fa26ca48f3b57822157c11152a?pvs=…
-
-
### What happened?
`validate_environment()` works fine for `gpt-3.5-turbo` and `claude-3-sonnet-20240229`:
- When the environment is set up properly, then `keys_in_environment = True` and `missing…
-
**Bug description**
i get this response from the docker image or g4f library whenever i send a chatcompletion request to the api?
this is the error:
```
openai.InternalServerError: Error code: 500…
-
-
**my code**
client = Client(provider='DeepInfra')
response_q = client.chat.completions.create(model="meta-llama/Meta-Llama-3-70B-Instruct",
…
-
Lets extend the work in https://github.com/tarasglek/chatcraft.org/pull/498 to enable a custom provider.
Eg I would provide a url like "https://taras-free_open_router.web.val.run/api/v1" or "https…
-
Currently the library provides a custom class for a lot of (if not all) models shipped in deepinfra, which requires a lot of maintenance, because new models come and go. Also, if you want to use a par…
-
It's not crystal clear from the docs, but there are two interfaces for TextToImage (ImageGeneration) models:
* one is the SDXL one, which is actually custom (i.e it might support params not available…