加入机器人自由的 合作伙伴和联盟 的程序和支持我们免费开放平台
Bot Libre Forum : Automating your Mobile Presence with a Telegram Bot

RE: Automating your Mobile Presence with a Telegram Bot

通过 admin 发布 May 17 2023, 8:57

The issue is the quote is being sent in the HTTP request inside the JSON object.

I fixed the script in your bot Chatter to add,

input.toString().replace('"', '\"')
>>
json.messages.add({"role":"user", "content":(conversation.getLast(#input, 1)).input.toString().replace('"', '\"')});

This will fix it for now. We will also update our HTTP code to automatically escape quotes for all JSON objects.


Id: 47503688
发布: May 17 2023, 8:57
答复: 0
的风景: 2071, 今天: 2, 周: 21, 一个月: 34
0 0 0.0/5