Closed duolabmeng6 closed 9 months ago
import re
def find_all_jsons(origin: str):
# 使用正则表达式找到所有 ```json ``` 标记的内容
pattern = r"```json(.*?)```"
matches = re.findall(pattern, origin, re.DOTALL)
# 创建一个列表来存储找到的 JSON 内容
json_blocks = [match.strip() for match in matches]
return json_blocks
修复了
Agently\utils\transform.py
问题挺多的 token消耗非常多 如果是 pro版本 一次7000 token...啊这 优化一下代码返回的吧
似乎代码逻辑是 格式不正确就继续问 啊这...我第一次用发现token怎么没了那么多..
格式不正确只会修复一次,还修复不了就会抛出错误
find json那个不能直接用'''json来替换,模型不一定会那样输出,换行问题的确是的,我来看看怎么修复
问题挺多的 token消耗非常多 如果是 pro版本 一次7000 token...啊这 优化一下代码返回的吧
这个是在跑智能体协同沙盒那个任务吗?
问题挺多的 token消耗非常多 如果是 pro版本 一次7000 token...啊这 优化一下代码返回的吧
这个是在跑智能体协同沙盒那个任务吗?
https://aistudio.baidu.com/projectdetail/7245939
https://aistudio.baidu.com/application/detail/12682
昨天刚刚开发好的
然后昨天晚上刚好看到你的视频
我想着接口格式挺好的
我就想换上去结果效果非常的糟糕啊
完全是不可以用的状态 尝试修了一下依然不行..改回去了.
有交流的微信群吗
代码换行的确是我们没处理好。有微信群,您discord上私我一下微信号,我来加
released in 3.0.5.post3
正常的输出是这样子的
经过这个函数就变成了 完全没法用了哦