ollama兼容

This commit is contained in:
glide-the 2024-05-20 10:05:37 +08:00
parent 5a0cb4d238
commit 0470b8ae41
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ class _CommonOllama:
:return: :return:
""" """
credentials_kwargs = { credentials_kwargs = {
"openai_api_key": "Empty", "api_key": "Empty",
"timeout": Timeout(315.0, read=300.0, write=10.0, connect=5.0), "timeout": Timeout(315.0, read=300.0, write=10.0, connect=5.0),
"max_retries": 1, "max_retries": 1,
} }

View File

@ -136,7 +136,7 @@ def init_server(logging_conf: dict, providers_file: str) -> None:
yield f"http://127.0.0.1:20000" yield f"http://127.0.0.1:20000"
finally: finally:
print("") print("")
boot.destroy() # boot.destroy()
except SystemExit: except SystemExit: