Maplemx / Agently

[AI Agent Application Development Framework] - 🚀 Build AI agent native application in very few code 💬 Easy to interact with AI agent in code using structure data and chained-calls syntax 🧩 Enhance AI Agent using plugins instead of rebuild a whole new agent
http://agently.tech
Apache License 2.0
935 stars 105 forks source link

提两个bug修正的地方 #72

Closed aiwenForGit closed 3 months ago

aiwenForGit commented 3 months ago

1.yaml文件里面有中文会报错, Exception: [Agent Component: YAMLReader]: Error occured when read YAML from path './prompt.yaml'. Error: 'gbk' codec can't decode byte 0xad in position 109: illegal multibyte sequence 修正方法:open(path, "r", encoding="utf-8"), image

2.模型claude.py中如果要用到中转代理,设置下base_url, image

Maplemx commented 3 months ago

感谢指出,下次可以直接提交PR到dev分支,成为我们的contributor

Maplemx commented 3 months ago

1: https://github.com/Maplemx/Agently/commit/dc9e3707106c27d8b6171813d1d510a2ecdcfe07

2: https://github.com/Maplemx/Agently/commit/dcc9e04447bb825f79860266e3edcb8c2c8dddeb

Claude更换base_url的用法和OAIClient保持一致:

.set_settings("current_model", "Claude")
.set_settings("model.Claude.url", "xxxxxxxxxxx")

url需要表达为http://xxxxx.xxx/v1

Maplemx commented 3 months ago

published in v3.2.2.3