summaryrefslogtreecommitdiffstats
path: root/docs/async_client.md
diff options
context:
space:
mode:
authorkqlio67 <kqlio67@users.noreply.github.com>2024-10-29 21:03:05 +0100
committerkqlio67 <kqlio67@users.noreply.github.com>2024-10-29 21:03:05 +0100
commite79c8b01f58d21502c962f38c804bf81196f89fb (patch)
treee8f0d3f94d7a8834d45173272bd1307c91ba06d4 /docs/async_client.md
parentUpdate (g4f/gui/server/api.py) (diff)
downloadgpt4free-e79c8b01f58d21502c962f38c804bf81196f89fb.tar
gpt4free-e79c8b01f58d21502c962f38c804bf81196f89fb.tar.gz
gpt4free-e79c8b01f58d21502c962f38c804bf81196f89fb.tar.bz2
gpt4free-e79c8b01f58d21502c962f38c804bf81196f89fb.tar.lz
gpt4free-e79c8b01f58d21502c962f38c804bf81196f89fb.tar.xz
gpt4free-e79c8b01f58d21502c962f38c804bf81196f89fb.tar.zst
gpt4free-e79c8b01f58d21502c962f38c804bf81196f89fb.zip
Diffstat (limited to 'docs/async_client.md')
-rw-r--r--docs/async_client.md4
1 files changed, 1 insertions, 3 deletions
diff --git a/docs/async_client.md b/docs/async_client.md
index 357b0d86..0719a463 100644
--- a/docs/async_client.md
+++ b/docs/async_client.md
@@ -3,7 +3,7 @@ The G4F async client API is a powerful asynchronous interface for interacting wi
## Compatibility Note
-The G4F async client API is designed to be compatible with the OpenAI and Anthropic API, making it easy for developers familiar with OpenAI's or Anthropic's interface to transition to G4F.
+The G4F async client API is designed to be compatible with the OpenAI API, making it easy for developers familiar with OpenAI's interface to transition to G4F.
## Table of Contents
- [Introduction](#introduction)
@@ -57,7 +57,6 @@ client = Client(
**Here’s an improved example of creating chat completions:**
```python
response = await async_client.chat.completions.create(
- system="You are a helpful assistant.",
model="gpt-3.5-turbo",
messages=[
{
@@ -70,7 +69,6 @@ response = await async_client.chat.completions.create(
```
**This example:**
- - Sets a system message to define the assistant's role
- Asks a specific question `Say this is a test`
- Configures various parameters like temperature and max_tokens for more control over the output
- Disables streaming for a complete response