返回提交历史
Modified
g4f/client/__init__.py
+1
-1
Modified
g4f/tools/run_tools.py
+1
-1
XFEstudio/gpt4free
Add missing changes
aef3d8dc
代码差异
2 个文件
+2
-2
@@ -542,7 +542,7 @@ class AsyncCompletions:
542
542
kwargs["ignore_stream"] = True
543
543
544
544
response = async_iter_run_tools(
545
provider.get_async_create_function(),
545
provider,
546
546
model,
547
547
messages,
548
548
stream=stream,
@@ -47,7 +47,7 @@ async def async_iter_run_tools(provider: ProviderType, model: str, messages, too
47
47
pass
48
48
49
49
# Read api_key from config file
50
if provider.needs_auth and "api_key" not in kwargs:
50
if getattr(provider, "needs_auth", False) and "api_key" not in kwargs:
51
51
auth_file = get_api_key_file(provider)
52
52
if auth_file.exists():
53
53
with auth_file.open("r") as f: