瀏覽代碼

trival (#2808)

### What problem does this PR solve?



### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.13.0
Kevin Hu 1 年之前
父節點
當前提交
190eea7097
沒有連結到貢獻者的電子郵件帳戶。
共有 2 個檔案被更改,包括 2 行新增1 行删除
  1. 1
    1
      api/apps/llm_app.py
  2. 1
    0
      rag/nlp/__init__.py

+ 1
- 1
api/apps/llm_app.py 查看文件

@@ -332,7 +332,7 @@ def my_llms():
@login_required
def list_app():
self_deploied = ["Youdao","FastEmbed", "BAAI", "Ollama", "Xinference", "LocalAI", "LM-Studio"]
weighted = ["Youdao","FastEmbed", "BAAI"] if not LIGHTEN else []
weighted = ["Youdao","FastEmbed", "BAAI"] if LIGHTEN != 0 else []
model_type = request.args.get("model_type")
try:
objs = TenantLLMService.query(tenant_id=current_user.id)

+ 1
- 0
rag/nlp/__init__.py 查看文件

@@ -151,6 +151,7 @@ def qbullets_category(sections):
maxium = h
return res, QUESTION_PATTERN[res]


BULLET_PATTERN = [[
r"第[零一二三四五六七八九十百0-9]+(分?编|部分)",
r"第[零一二三四五六七八九十百0-9]+章",

Loading…
取消
儲存