Fix none-comparison (E711) warnings (#19745)

Signed-off-by: Xiaodong Ye <yeahdongcn@gmail.com>
This commit is contained in:
R0CKSTAR
2026-03-07 08:15:21 +08:00
committed by GitHub
parent 0c4f98ed4e
commit e818f8219a
6 changed files with 15 additions and 15 deletions

View File

@@ -86,7 +86,7 @@ class CustomAsyncHTTPXClient(httpx.AsyncClient):
def get_client(provider):
if provider not in "b10":
if os.getenv("OPENAI_API_KEY") == None:
if os.getenv("OPENAI_API_KEY") is None:
os.environ["OPENAI_API_KEY"] = "EMPTY"
return {
"oai": AsyncOpenAI(base_url="http://127.0.0.1:8000/v1/"),