-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Please read this first
- Have you read the docs?Agents SDK docs yes
- Have you searched for related issues? Others may have faced similar issues. yes
Describe the bug
I am about to create an AsyncOpenAI
client, with base_url
to point to my endpoint, and my endpoint does not require authentication. However, the error of invalid API key shows.
Debug information
- Agents SDK version: (e.g.
v0.0.3
) - Python version (e.g. Python 3.12.0)
Repro steps
from openai import AsyncOpenAI
from agents import set_default_openai_client
set_default_openai_client(
AsyncOpenAI(
base_url=<my-base-url>,
api_key="sk-bjkacbsajkcbajcakbcsjaascbkjsabcajkcbakjascbkjsc",
),
)
My endpoint does not require API key. In other implementation, I can still use a dummy API key for interacting with this.
However, when I call Runner.run()
, it shows the error of invalid API key.
Expected behavior
The client should work without checking the API key in this case.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working