返回提交历史
Modified
g4f/Provider/local/Ollama.py
+1
-1
XFEstudio/gpt4free
Fix loop in Ollama
012604a5
代码差异
1 个文件
+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