{"slug":"anuneko","title":"上手米哈游AI，然后把它逆了！","description":"AnuNeko是一只会哈气的橘猫...其实不是，AnuNeko是由米哈游创始人做的AI大模型，会哈气。于是便做个QQBot给群友玩","coverImage":"https://b.acofork.com/img/anuneko-anuneko.webp","coverWidth":591,"coverHeight":429,"date":"2025-12-02","tags":["AI"],"pinned":false,"wordCount":276,"html":"<h2 id=\"这是what\">这是What</h2><p>这是橘猫，会哈气（见封面</p>\n<p>你可以前往 <a href=\"https://anuneko.com/#/chat\" target=\"_blank\" rel=\"noopener noreferrer\">AnuNeko</a> 逗猫</p>\n<h2 id=\"逆\">逆！</h2><p>okok，注意到登陆后的请求头中有 <code>x-token</code> 字段\n<img src=\"https://b.acofork.com/img/anuneko-anuneko-1.webp\" alt=\"\" width=\"630\" height=\"888\" loading=\"eager\" decoding=\"async\" /></p>\n<p>手搓个请求发发，<code>data</code> 携带内容 </p>\n<div class=\"markdown-code\" data-language=\"json\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1\"></path><path d=\"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 0-2-2V5a2 2 0 0 0-2-2h-1\"></path></svg><span>json</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-json\">curl --location <span class=\"hljs-string\">'https://anuneko.com/api/v1/msg/会话id/stream'</span> \\\n--header <span class=\"hljs-string\">'x-token: 账号Token'</span> \\\n--header <span class=\"hljs-string\">'Content-Type: text/plain'</span> \\\n--header <span class=\"hljs-string\">'Cookie: 自动拿取'</span> \\\n--data <span class=\"hljs-string\">'{\"contents\":[\"test\"]}'</span></code></pre></div><p>通了\n<img src=\"https://b.acofork.com/img/anuneko-anuneko-2.webp\" alt=\"\" width=\"1294\" height=\"1294\" loading=\"lazy\" decoding=\"async\" /></p>\n<p>然后还有一种情况，在遇到Pick的时候，我们要发送要选择的回复编号\n<img src=\"https://b.acofork.com/img/anuneko-anuneko-3.webp\" alt=\"\" width=\"616\" height=\"277\" loading=\"lazy\" decoding=\"async\" /></p>\n<p>发个如图请求帮橘猫选择</p>\n<div class=\"markdown-code\" data-language=\"text\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\"></path><path d=\"M14 2v5a1 1 0 0 0 1 1h5\"></path><path d=\"M10 9H8\"></path><path d=\"M16 13H8\"></path><path d=\"M16 17H8\"></path></svg><span>text</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-text\">curl --location 'https://anuneko.com/api/v1/msg/select-choice' \\\n--header 'x-token: 你的Token' \\\n--header 'Content-Type: text/plain' \\\n--header 'Cookie: 自动拿取' \\\n--data '{\"msg_id\":\"会话id\",\"choice_idx\":0或1}'</code></pre></div><p>还有还有，这有个橘猫和黑猫，如何切换一个会话的猫？</p>\n<div class=\"markdown-code\" data-language=\"text\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\"></path><path d=\"M14 2v5a1 1 0 0 0 1 1h5\"></path><path d=\"M10 9H8\"></path><path d=\"M16 13H8\"></path><path d=\"M16 17H8\"></path></svg><span>text</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-text\">curl --location 'https://anuneko.com/api/v1/user/select_model' \\\n--header 'x-token: 你的Token' \\\n--header 'Content-Type: text/plain' \\\n--header 'Cookie: 自动拿取' \\\n--data '{\"chat_id\":\"会话id\",\"model\":\"Exotic Shorthair或Orange Cat\"}'</code></pre></div><p>随便写了个适用于NoneBot2的插件，玩吧\n<a href=\"https://github.com/afoim/AnuNeko_NoneBot2_Plugins/blob/main/anuneko.py\" target=\"_blank\" rel=\"noopener noreferrer\">AnuNeko_NoneBot2_Plugins/anuneko.py at main · afoim/AnuNeko_NoneBot2_Plugins</a></p>\n","toc":[{"id":"这是what","text":"这是What","depth":2},{"id":"逆","text":"逆！","depth":2}]}