Explorar el Código
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
hace 7 meses
No account linked to committer's email address
|
|
|
|
|
|
|
|
import requests |
|
|
import requests |
|
|
import asyncio |
|
|
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): |
|
|
class Base(ABC): |