mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-01-31 19:33:26 +08:00
* 支持了agentlm * 支持了agentlm和相关提示词 * 修改了Agent的一些功能,加入了Embed方面的一个优化 * 修改了部分Agent的工具 * 增加一些Langchain的自带工具 * 修复一些兼容性的bug * 恢复知识库 * 恢复知识库 * 修复Azure问题
16 lines
399 B
Python
16 lines
399 B
Python
import sys
|
|
from pathlib import Path
|
|
root_path = Path(__file__).parent.parent.parent
|
|
sys.path.append(str(root_path))
|
|
|
|
from server.model_workers.baichuan import request_baichuan_api
|
|
from pprint import pprint
|
|
|
|
|
|
def test_baichuan():
|
|
messages = [{"role": "user", "content": "hello"}]
|
|
|
|
for x in request_baichuan_api(messages):
|
|
print(type(x))
|
|
pprint(x)
|
|
assert x["code"] == 0 |