fix(openai.py): handling extra headers

This commit is contained in:
Krrish Dholakia 2023-11-16 12:48:14 -08:00
parent 56838ee815
commit a6e9f147d3
6 changed files with 98 additions and 118 deletions

View file

@ -941,8 +941,6 @@ def completion(
{
"HTTP-Referer": openrouter_site_url,
"X-Title": openrouter_app_name,
"Content-Type": "application/json",
"Authorization": f"Bearer {api_key}"
}
)