mirror of
https://github.com/xtekky/gpt4free.git
synced 2026-01-06 01:02:13 -08:00
Update client.md
This commit is contained in:
parent
74efd0ca34
commit
2cd863f55f
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ from openai import OpenAI
|
||||||
|
|
||||||
New Import:
|
New Import:
|
||||||
```python
|
```python
|
||||||
from g4f.client import Client
|
from g4f.client import Client as OpenAI
|
||||||
```
|
```
|
||||||
|
|
||||||
The G4F Client maintains the same API interface as OpenAI, ensuring a seamless transition.
|
The G4F Client maintains the same API interface as OpenAI, ensuring a seamless transition.
|
||||||
|
|
@ -28,7 +28,7 @@ To use the G4F Client, create an instance with customized providers:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from g4f.client import Client
|
from g4f.client import Client
|
||||||
from g4f.providers import BingCreateImages, OpenaiChat, Gemini
|
from g4f.Provider import BingCreateImages, OpenaiChat, Gemini
|
||||||
|
|
||||||
client = Client(
|
client = Client(
|
||||||
text_provider=OpenaiChat,
|
text_provider=OpenaiChat,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue