LightAgent 0.2.5__tar.gz → 0.2.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -435,7 +435,7 @@ class LightAgent:
435
435
  params["messages"] = [{"role": "system", "content": system_prompt}]
436
436
  # 将历史对话添加到消息列表中
437
437
  for item in history:
438
- params["messages"].append({"role": item["role"], "content": item["input"]})
438
+ params["messages"].append({"role": item["role"], "content": item["content"]})
439
439
  # 最后添加当前用户的查询信息
440
440
  params["messages"].append({"role": "user", "content": query})
441
441
  response = self.client.chat.completions.create(**params)