在使用过程中,遇到任何问题。 可以在Github提交issue,有些问题可能是之前已经遇到过的,可以在issue当中进行搜索, 如果你在使用过程中解决了一些问题,也非常欢迎在社区互动,解决并关闭对应的issue
如何配置对话轮数?
当前对话轮次默认是2轮, 如果需要增大轮次,可以修改代码中BaseChat类的代码。 源码
chat_retention_rounds: int = 0 # 修改此配置项
class BaseChat(ABC):"""DB-GPT Chat Service Base ModuleInclude:stream_call():scene + prompt -> stream responsenostream_call():scene + prompt -> nostream response"""chat_scene: str = Nonellm_model: Any = None# By default, keep the last two rounds of conversation records as the contextchat_retention_rounds: int = 0 # 修改此配置项class Config:"""Configuration for this pydantic object."""arbitrary_types_allowed = True
