mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-08 07:53:29 +08:00
ollama兼容
This commit is contained in:
parent
5a0cb4d238
commit
0470b8ae41
@ -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,
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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:
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user