Explorar el Código

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 hace 1 año
padre
commit
190eea7097
No account linked to committer's email address
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1
    1
      api/apps/llm_app.py
  2. 1
    0
      rag/nlp/__init__.py

+ 1
- 1
api/apps/llm_app.py Ver fichero

@login_required @login_required
def list_app(): def list_app():
self_deploied = ["Youdao","FastEmbed", "BAAI", "Ollama", "Xinference", "LocalAI", "LM-Studio"] 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") model_type = request.args.get("model_type")
try: try:
objs = TenantLLMService.query(tenant_id=current_user.id) objs = TenantLLMService.query(tenant_id=current_user.id)

+ 1
- 0
rag/nlp/__init__.py Ver fichero

maxium = h maxium = h
return res, QUESTION_PATTERN[res] return res, QUESTION_PATTERN[res]



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

Cargando…
Cancelar
Guardar