diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-02-13 11:29:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-13 11:29:41 +0100 |
commit | 2cd863f55f16964c6e2bbc1487ed3bb308d80dbd (patch) | |
tree | b7fb18bb1f559e2ca554a71b22030f3beddd2879 /docs/client.md | |
parent | Update client.md (diff) | |
download | gpt4free-2cd863f55f16964c6e2bbc1487ed3bb308d80dbd.tar gpt4free-2cd863f55f16964c6e2bbc1487ed3bb308d80dbd.tar.gz gpt4free-2cd863f55f16964c6e2bbc1487ed3bb308d80dbd.tar.bz2 gpt4free-2cd863f55f16964c6e2bbc1487ed3bb308d80dbd.tar.lz gpt4free-2cd863f55f16964c6e2bbc1487ed3bb308d80dbd.tar.xz gpt4free-2cd863f55f16964c6e2bbc1487ed3bb308d80dbd.tar.zst gpt4free-2cd863f55f16964c6e2bbc1487ed3bb308d80dbd.zip |
Diffstat (limited to 'docs/client.md')
-rw-r--r-- | docs/client.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/client.md b/docs/client.md index c29fd79b..74a5efec 100644 --- a/docs/client.md +++ b/docs/client.md @@ -17,7 +17,7 @@ from openai import OpenAI New Import: ```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. @@ -28,7 +28,7 @@ To use the G4F Client, create an instance with customized providers: ```python from g4f.client import Client -from g4f.providers import BingCreateImages, OpenaiChat, Gemini +from g4f.Provider import BingCreateImages, OpenaiChat, Gemini client = Client( text_provider=OpenaiChat, |