XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/gpt4free

Add missing changes

aef3d8dc
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

2 个文件 +2 -2
Modified g4f/client/__init__.py +1 -1
@@ -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,
Modified g4f/tools/run_tools.py +1 -1
@@ -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: