Skip to content

Commit 0ea6994

Browse files
authored
Merge pull request #45 from junjzhang/typo_fix
fix typo in docs of configuring custom client
2 parents 3d24787 + a5f7400 commit 0ea6994

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ from openai import AsyncOpenAI
1717
from agents import set_default_openai_client
1818

1919
custom_client = AsyncOpenAI(base_url="...", api_key="...")
20-
set_default_openai_client(client)
20+
set_default_openai_client(custom_client)
2121
```
2222

2323
Finally, you can also customize the OpenAI API that is used. By default, we use the OpenAI Responses API. You can override this to use the Chat Completions API by using the [set_default_openai_api()][agents.set_default_openai_api] function.

0 commit comments

Comments
 (0)