mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Fix using nodriver
This commit is contained in:
parent
7f6b528e44
commit
62803546a6
2 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ class Azure(OpenaiTemplate):
|
|||
if not model:
|
||||
model = os.environ.get("AZURE_DEFAULT_MODEL", cls.default_model)
|
||||
if not api_key:
|
||||
raise ValueError("API key is required for Azure provider")
|
||||
raise ValueError(f"API key is required for Azure provider. Ask for API key in the {cls.login_url} Discord server.")
|
||||
if not api_endpoint:
|
||||
if not cls.routes:
|
||||
cls.get_models()
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ async def get_args_from_nodriver(
|
|||
"headers": {
|
||||
**DEFAULT_HEADERS,
|
||||
"user-agent": user_agent,
|
||||
"referer": f"{url.rstip('/')}/",
|
||||
"referer": f"{url.rstrip('/')}/",
|
||||
},
|
||||
"proxy": proxy,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue