mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-01-19 21:37:20 +08:00
* 优化在线 API ,支持 completion 和 embedding,简化在线 API 开发方式 新功能 - 智谱AI、Minimax、千帆、千问 4 个在线模型支持 embeddings(不通过Fastchat,后续会单独提供相关api接口) - 在线模型自动检测传入参数,在传入非 messages 格式的 prompt 时,自动转换为 completion 形式,以支持 completion 接口 开发者: - 重构ApiModelWorker: - 所有在线 API 请求封装到 do_chat 方法:自动传入参数 ApiChatParams,简化参数与配置项的获取;自动处理与fastchat的接口 - 加强 API 请求错误处理,返回更有意义的信息 - 改用 qianfan sdk 重写 qianfan-api - 将所有在线模型的测试用例统一在一起,简化测试用例编写 * Delete requirements_langflow.txt
62 lines
1.0 KiB
Plaintext
62 lines
1.0 KiB
Plaintext
langchain>=0.0.319
|
|
fschat>=0.2.31
|
|
openai
|
|
# sentence_transformers
|
|
# transformers>=4.33.0
|
|
# torch>=2.0.1
|
|
# torchvision
|
|
# torchaudio
|
|
fastapi>=0.103.1
|
|
nltk~=3.8.1
|
|
uvicorn~=0.23.1
|
|
starlette~=0.27.0
|
|
pydantic~=1.10.11
|
|
# unstructured[all-docs]>=0.10.4
|
|
# python-magic-bin; sys_platform == 'win32'
|
|
SQLAlchemy==2.0.19
|
|
# faiss-cpu
|
|
# accelerate
|
|
# spacy
|
|
# PyMuPDF==1.22.5
|
|
# rapidocr_onnxruntime>=1.3.2
|
|
|
|
requests
|
|
pathlib
|
|
pytest
|
|
# scikit-learn
|
|
# numexpr
|
|
# vllm==0.1.7; sys_platform == "linux"
|
|
|
|
# online api libs
|
|
zhipuai
|
|
dashscope>=1.10.0 # qwen
|
|
qianfan
|
|
# volcengine>=1.0.106 # fangzhou
|
|
|
|
# uncomment libs if you want to use corresponding vector store
|
|
# pymilvus==2.1.3 # requires milvus==2.1.3
|
|
# psycopg2
|
|
# pgvector
|
|
|
|
numpy~=1.24.4
|
|
pandas~=2.0.3
|
|
streamlit>=1.26.0
|
|
streamlit-option-menu>=0.3.6
|
|
streamlit-antd-components>=0.1.11
|
|
streamlit-chatbox>=1.1.9
|
|
streamlit-aggrid>=0.3.4.post3
|
|
httpx~=0.24.1
|
|
watchdog
|
|
tqdm
|
|
websockets
|
|
# tiktoken
|
|
einops
|
|
# scipy
|
|
# transformers_stream_generator==0.0.4
|
|
|
|
# search engine libs
|
|
duckduckgo-search
|
|
metaphor-python
|
|
strsimpy
|
|
markdownify
|