Tuchuanhuhuhu commited on
Commit
731a989
·
1 Parent(s): 03f9025

fix XM Bot

Browse files
Files changed (1) hide show
  1. modules/models.py +3 -4
modules/models.py CHANGED
@@ -467,10 +467,9 @@ class XMBot_Client(BaseLLMModel):
467
  "data_type": "imgbase64",
468
  "data": self.image_bytes
469
  }
470
- # response = requests.post(self.url, json=data)
471
- # response = json.loads(response.text)
472
- # logging.info(f"图片回复: {response['data']}")
473
- logging.info("发送了图片")
474
  return None, chatbot, None
475
 
476
  def get_answer_at_once(self):
 
467
  "data_type": "imgbase64",
468
  "data": self.image_bytes
469
  }
470
+ response = requests.post(self.url, json=data)
471
+ response = json.loads(response.text)
472
+ logging.info(f"图片回复: {response['data']}")
 
473
  return None, chatbot, None
474
 
475
  def get_answer_at_once(self):