fix: add UA header for Mai520 openai client

pull/1324/head
magisk317 2025-10-26 19:33:03 +08:00
parent c5b9bc4927
commit 7b3696fb79
1 changed files with 1 additions and 0 deletions

View File

@ -396,6 +396,7 @@ class OpenaiClient(BaseClient):
api_key=api_provider.api_key,
max_retries=0,
timeout=api_provider.timeout,
default_headers={"User-Agent": "python-requests/2.32.0"},
)
async def get_response(