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.
- {lightagent-0.2.5 → lightagent-0.2.6}/LightAgent/la_core.py +1 -1
- {lightagent-0.2.5 → lightagent-0.2.6}/PKG-INFO +80 -697
- {lightagent-0.2.5 → lightagent-0.2.6}/README.de.md +1 -1
- {lightagent-0.2.5 → lightagent-0.2.6}/README.es.md +1 -1
- {lightagent-0.2.5 → lightagent-0.2.6}/README.fr.md +1 -1
- {lightagent-0.2.5 → lightagent-0.2.6}/README.ko.md +1 -1
- {lightagent-0.2.5 → lightagent-0.2.6}/README.md +32 -3
- {lightagent-0.2.5 → lightagent-0.2.6}/README.pt.md +1 -1
- {lightagent-0.2.5 → lightagent-0.2.6}/README.ru.md +1 -1
- {lightagent-0.2.5 → lightagent-0.2.6}/README.zh-CN.md +41 -14
- {lightagent-0.2.5 → lightagent-0.2.6}/pyproject.toml +1 -2
- lightagent-0.2.5/README.zh-TW.md +0 -673
- {lightagent-0.2.5 → lightagent-0.2.6}/LICENSE +0 -0
- {lightagent-0.2.5 → lightagent-0.2.6}/LightAgent/__init__.py +0 -0
- {lightagent-0.2.5 → lightagent-0.2.6}/README.ja.md +0 -0
|
@@ -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["
|
|
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)
|