mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-15 14:51:19 -08:00
Add duckduckgo-search to slim requirements,
Add pass provider as model in the client, Fix missing @property in version utils
This commit is contained in:
parent
6b48af1757
commit
cab71ca8b6
9 changed files with 64 additions and 11 deletions
|
|
@ -292,7 +292,7 @@ client = AsyncClient(provider=g4f.Provider.OpenaiChat)
|
|||
|
||||
response = await client.chat.completions.create(
|
||||
model="gpt-4",
|
||||
provider=g4f.Provider.Bing,
|
||||
provider=g4f.Provider.CopilotAccount,
|
||||
messages=[
|
||||
{
|
||||
"role": "user",
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import g4f
|
|||
|
||||
g4f.debug.logging = True # Enable debug logging
|
||||
g4f.debug.version_check = False # Disable automatic version checking
|
||||
print(g4f.Provider.Bing.params) # Print supported args for Bing
|
||||
print(g4f.Provider.Gemini.params) # Print supported args for Bing
|
||||
|
||||
# Using automatic a provider for the given model
|
||||
## Streamed completion
|
||||
|
|
@ -78,7 +78,7 @@ for message in response:
|
|||
|
||||
Image upload and generation are supported by three main providers:
|
||||
|
||||
- **Bing & Other GPT-4 Providers:** Utilizes Microsoft's Image Creator.
|
||||
- **Microsoft Copilot & Other GPT-4 Providers:** Utilizes Microsoft's Image Creator.
|
||||
- **Google Gemini:** Available for free accounts with IP addresses outside Europe.
|
||||
- **OpenaiChat with GPT-4:** Accessible for users with a Plus subscription.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue