mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-01-31 19:33:26 +08:00
ollama兼容
This commit is contained in:
parent
5a0cb4d238
commit
0470b8ae41
@ -22,7 +22,7 @@ class _CommonOllama:
|
||||
:return:
|
||||
"""
|
||||
credentials_kwargs = {
|
||||
"openai_api_key": "Empty",
|
||||
"api_key": "Empty",
|
||||
"timeout": Timeout(315.0, read=300.0, write=10.0, connect=5.0),
|
||||
"max_retries": 1,
|
||||
}
|
||||
|
||||
@ -136,7 +136,7 @@ def init_server(logging_conf: dict, providers_file: str) -> None:
|
||||
yield f"http://127.0.0.1:20000"
|
||||
finally:
|
||||
print("")
|
||||
boot.destroy()
|
||||
# boot.destroy()
|
||||
|
||||
except SystemExit:
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user