浏览代码

Refa: refine the context window size warning. (#5993)

### What problem does this PR solve?


### Type of change
- [x] Refactoring
tags/v0.17.2
Kevin Hu 7 个月前
父节点
当前提交
3571270191
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      rag/llm/chat_model.py

+ 2
- 2
rag/llm/chat_model.py 查看文件

@@ -29,8 +29,8 @@ import json
import requests
import asyncio

LENGTH_NOTIFICATION_CN = "······\n由于长度的原因,回答被截断了,要继续吗?"
LENGTH_NOTIFICATION_EN = "...\nFor the content length reason, it stopped, continue?"
LENGTH_NOTIFICATION_CN = "······\n由于大模型的上下文窗口大小限制,回答已经被大模型截断。"
LENGTH_NOTIFICATION_EN = "...\nThe answer is truncated by your chosen LLM due to its context length limitation."


class Base(ABC):

正在加载...
取消
保存