Tuchuanhuhuhu commited on
Commit
3d66128
·
1 Parent(s): dfc7bef

XMChat发送第二张图片之前充值对话

Browse files
Files changed (1) hide show
  1. modules/models.py +2 -0
modules/models.py CHANGED
@@ -461,6 +461,8 @@ class XMChat(BaseLLMModel):
461
  chatbot = chatbot + [((self.image_path,), None)]
462
  if self.image_bytes is not None:
463
  logging.info("使用图片作为输入")
 
 
464
  conv_id = str(uuid.uuid4())
465
  data = {
466
  "user_id": self.api_key,
 
461
  chatbot = chatbot + [((self.image_path,), None)]
462
  if self.image_bytes is not None:
463
  logging.info("使用图片作为输入")
464
+ # XMChat的一轮对话中实际上只能处理一张图片
465
+ self.reset()
466
  conv_id = str(uuid.uuid4())
467
  data = {
468
  "user_id": self.api_key,