在使用过程中,遇到任何问题。 可以在Github提交issue,有些问题可能是之前已经遇到过的,可以在issue当中进行搜索, 如果你在使用过程中解决了一些问题,也非常欢迎在社区互动,解决并关闭对应的issue

如何配置对话轮数?

当前对话轮次默认是2轮, 如果需要增大轮次,可以修改代码中BaseChat类的代码。 源码

  1. chat_retention_rounds: int = 0 # 修改此配置项
  1. class BaseChat(ABC):
  2. """DB-GPT Chat Service Base Module
  3. Include:
  4. stream_call():scene + prompt -> stream response
  5. nostream_call():scene + prompt -> nostream response
  6. """
  7. chat_scene: str = None
  8. llm_model: Any = None
  9. # By default, keep the last two rounds of conversation records as the context
  10. chat_retention_rounds: int = 0 # 修改此配置项
  11. class Config:
  12. """Configuration for this pydantic object."""
  13. arbitrary_types_allowed = True