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

XFEstudio/gpt4free

Fix loop in Ollama

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

代码差异

1 个文件 +1 -1
Modified g4f/Provider/local/Ollama.py +1 -1
@@ -60,7 +60,7 @@ class Ollama(OpenaiAPI):
60 60 port = os.getenv("OLLAMA_PORT", "11434")
61 61 api_base: str = f"http://{host}:{port}/v1"
62 62 if model in cls.local_models or not api_key:
63 for chunk in super().create_async_generator(
63 async for chunk in super().create_async_generator(
64 64 model, messages, api_base=api_base, proxy=proxy, **kwargs
65 65 ):
66 66 yield chunk