curl 'https://ark.cn-beijing.volces.com/api/v3/bots/chat/completions' \ -H "Authorization: Bearer 168deb3d-fd0c-4912-b9f1-aaee5c6743e6" \ -H 'Content-Type: application/json' \ -d '{ "model": "bot-20250405211523-l7c9r", "stream": true, "stream_options": {"include_usage": true}, "messages": [ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Hello!" } ] }' "amap-amap-sse": { "url": "https://mcp.amap.com/sse?key=e5fdc9605eabdeb5626f18f5721f343d" }, "web-search": { "url": "http://mcp.ideapsound.com:8000/sse" }, "deapsound-deapsound": { "url": "https://www.deapsound.com/sse" } curl 'https://ark.cn-beijing.volces.com/api/v3/bots/chat/completions' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer 168deb3d-fd0c-4912-b9f1-aaee5c6743e6' \ -d '{ "model": "bot-20250405211523-l7c9r", "stream": true, "messages": [ { "role": "assistant", "content": "你好呀!今天想和我聊些什么呢😄 是生活趣事、学习心得,还是其他好玩的话题?" }, { "role": "assistant", "content": "" }, { "role": "assistant", "content": "你好呀!今天过得怎么样?有什么需要我帮忙的吗?或者只是想聊聊天?😊" }, { "role": "assistant", "content": "明白啦!有什么需要我帮忙的吗?无论是查资料、聊天解闷,还是帮你处理手机上的任务,我随时待命哦~ 😊" }, { "role": "assistant", "content": "好的!随时准备陪你测试,有什么需要尽管说哦~ 😊 你希望测试什么功能呢?" }, { "role": "assistant", "content": "哎呀,听起来你有点小困扰呢!可能是因为网络波动、系统更新或者我偶尔“打瞌睡”了(开玩笑啦~)。不过别担心,我会努力保持最佳状态陪伴你!如果有什么具体问题,随时告诉我,我一定帮你解决得妥妥的!😊\n\n(或者你想测试什么功能?我随时待命哦!)" }, { "role": "assistant", "content": "嘿嘿,我是你的贴心语音助理小语呀!随时为你提供帮助、陪你聊天、解答问题,还能给你加油打气哦~有什么需要尽管告诉我吧! 😊" }, { "role": "assistant", "content": "我是小语呀,那个随时准备和你畅聊、给你排忧解难、陪你度过各种时光的手机全能语音助理😜 怎么啦,是不是刚才没记住呀🧐" }, { "role": "assistant", "content": "" }, { "role": "user", "content": "你好呀,你是谁呀?" } ], "temperature": 0.7, "max_tokens": 2000, "stream": true, "tools": [ { "type": "function", "function": { "name": "exit_interaction", "description": "退出当前语音交互", "parameters": { "type": "object", "properties": {}, "required": [] } } }, { "type": "function", "function": { "name": "enter_translation_mode", "description": "用户请求进入实时翻译模式时,启动实时翻译功能", "parameters": { "type": "object", "properties": {}, "required": [] } } }, { "type": "function", "function": { "name": "send_text_message", "description": "发送短信", "parameters": { "type": "object", "properties": { "contact": { "type": "string", "description": "联系人姓名或电话号码" }, "message": { "type": "string", "description": "短信内容" } }, "required": [ "contact", "message" ] } } }, { "type": "function", "function": { "name": "make_phone_call", "description": "拨打电话", "parameters": { "type": "object", "properties": { "contact": { "type": "string", "description": "联系人姓名或电话号码" } }, "required": [ "contact" ] } } }, { "type": "function", "function": { "name": "open_app", "description": "当用户请求打开特定应用时,启动相应应用", "parameters": { "type": "object", "properties": { "app_name": { "type": "string", "description": "应用名称" } }, "required": [ "app_name" ] } } } ] }' curl -X POST "https://www.deapsound.com/messages?sessionId=f156e609-6875-420b-b08d-577b7db695f1" \ -H "Accept-Charset: UTF-8" \ -H "Accept: */*" \ -H "User-Agent: ktor-client" \ -H "Content-Type: application/json" \ -d '{"id":6,"method":"tools/call","params":{"name":"tool_weather","arguments":{"city":"上海"},"_meta":{},"method":"tools/call"},"jsonrpc":"2.0"}' curl -X POST "https://www.deapsound.com/messages?sessionId=91c6e740-9a24-48f1-8c7f-62a2f99d1006" \ -H "Accept-Charset: UTF-8" \ -H "Accept: */*" \ -H "User-Agent: ktor-client" \ -H "Content-Type: application/json" \ -d '{"method":"notifications/initialized","params":{"method":"notifications/initialized"},"jsonrpc":"2.0"}' curl -X GET "https://www.deapsound.com/sse" \ -H "Accept: text/event-stream,text/event-stream" \ -H "Cache-Control: no-cache,no-store" \ -H "Accept-Charset: UTF-8" \ -H "User-Agent: ktor-client"