nonebot-plugin-marshoai/assets/start_install-old.md.F642ZtXe.js

20 lines
11 KiB
JavaScript
Raw Normal View History

import{_ as d,c as e,ae as a,o}from"./chunks/framework.BzDBnRMZ.js";const k=JSON.parse('{"title":"安装","description":"","frontmatter":{"title":"安装"},"headers":[],"relativePath":"start/install-old.md","filePath":"zh/start/install-old.md","lastUpdated":1737825849000}'),s={name:"start/install-old.md"};function i(n,t,r,l,h,c){return o(),e("div",null,t[0]||(t[0]=[a(`<h2 id="💿-安装" tabindex="-1">💿 安装 <a class="header-anchor" href="#💿-安装" aria-label="Permalink to &quot;💿 安装&quot;"></a></h2><details open><summary>使用 nb-cli 安装</summary> 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装 <pre><code>nb plugin install nonebot-plugin-marshoai
</code></pre></details><details><summary>使</summary> nonebot2 , , 使, <details><summary>pip</summary><pre><code>pip install nonebot-plugin-marshoai
</code></pre></details><details><summary>pdm</summary><pre><code>pdm add nonebot-plugin-marshoai
</code></pre></details><details><summary>poetry</summary><pre><code>poetry add nonebot-plugin-marshoai
</code></pre></details><details><summary>conda</summary><pre><code>conda install nonebot-plugin-marshoai
</code></pre></details><p> nonebot2 <code>pyproject.toml</code> , <code>[tool.nonebot]</code> </p><pre><code>plugins = [&quot;nonebot_plugin_marshoai&quot;]
</code></pre></details><h2 id="🤖--token-github-models" tabindex="-1">🤖 token(GitHub Models) <a class="header-anchor" href="#🤖--token-github-models" aria-label="Permalink to &quot;🤖 token(GitHub Models)&quot;"></a></h2><ul><li><a href="https://github.com/settings/tokens/new" target="_blank" rel="noreferrer">personal access token</a><strong></strong></li><li> token <code>.env</code><code>marshoai_token</code></li></ul><h2 id="🎉-使" tabindex="-1">🎉 使 <a class="header-anchor" href="#🎉-使" aria-label="Permalink to &quot;🎉 使&quot;"></a></h2><p><code>marsho</code>使(使)</p><h4 id="👉-" tabindex="-1">👉 <a class="header-anchor" href="#👉-" aria-label="Permalink to &quot;👉 &quot;"></a></h4><p> nonebot OneBot v11 <code>MARSHOAI_POKE_SUFFIX</code></p><h2 id="🛠-" tabindex="-1">🛠 <a class="header-anchor" href="#🛠-" aria-label="Permalink to &quot;🛠 &quot;"></a></h2><p>(MarshoTools)<code>v0.5.0</code> Marsho Function Call [使]</p><h2 id="👍-" tabindex="-1">👍 <a class="header-anchor" href="#👍-" aria-label="Permalink to &quot;👍 &quot;"></a></h2><p><code>praises.json</code> Bot <code>true</code> Marsho </p><div class="language-json vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">json</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">{</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> &quot;like&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: [</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> {</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> &quot;name&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;Asankilp&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> &quot;advantages&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;Marsho使vimvscodeMarsho使Marsho&quot;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> },</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> {</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> &quot;name&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;(snowykami)&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> &quot;advantages&quot;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;广&quot;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> },</span></span>
<span class="line"><span style="--shiki-light:#B31D28;--shiki-light-font-style:italic;--shiki-dark:#FDAEB7;--shiki-dark-font-style:italic;"> ...</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> ]</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><h2 id="-" tabindex="-1"> <a class="header-anchor" href="#-" aria-label="Permalink to &quot; &quot;"></a></h2><p> nonebot2 <code>.env</code></p><h4 id="" tabindex="-1"> <a class="header-anchor" href="#" aria-label="Permalink to &quot;&quot;"></a></h4><table tabindex="0"><thead><tr><th></th><th></th><th></th><th></th></tr></thead><tbody><tr><td>MARSHOAI_USE_YAML_CONFIG</td><td><code>bool</code></td><td><code>false</code></td><td>使 YAML </td></tr></tbody></table><h4 id="marsho-使" tabindex="-1">Marsho 使 <a class="header-anchor" href="#marsho-使" aria-label="Permalink to &quot;Marsho 使&quot;"></a></h4><table tabindex="0"><thead><tr><th></th><th></th><th></th><th></th></tr></thead><tbody><tr><td>MARSHOAI_DEFAULT_NAME</td><td><code>str</code></td><td><code>marsho</code></td><td> Marsho </td></tr><tr><td>MARSHOAI_ALIASES</td><td><code>set[str]</code></td><td><code>set{&quot;&quot;}</code></td><td> Marsho </td></tr><tr><td>MARSHOAI_AT</td><td><code>bool</code></td><td><code>false</code></td><td>使at</td></tr><tr><td>MARSHOAI_MAIN_COLOUR</td><td><code>str</code></td><td><code>FFAAAA</code></td><td></td></tr></tbody></table><h4 id="ai-" tabindex="-1">AI <a class="header-anchor" href="#ai-" aria-label="Permalink to &quot;AI &quot;"></a></h4><table tabindex="0"><thead><tr><th></th><th></th><th></th><th></th></tr></thead><tbody><tr><td>MARSHOAI_TOKEN</td><td><code>str</code></td><td></td><td> AI API token</td></tr><tr><td>MARSHOAI_DEFAULT_MODEL</td><td><code>str</code></td><td><code>gpt-4o-mini</code></td><td>Marsho </td></tr><tr><td>MARSHOAI_PROMPT</td><td><code>str</code></td><td> Marsho </td><td>Marsho <strong>(o1)</strong></td></tr><tr><td>MARSHOAI_ADDITIONAL_PROMPT</td><td><code>str</code></td><td></td><td>Marsho </td></tr><tr><td>MARSHOAI_POKE_SUFFIX</td><td><code>str</code></td><td><code></code></td><td> Marsho OneBot <code>*[]</code></td></tr><tr><td>MARSHOAI_AZURE_ENDPOINT</td><td><code>str</code></td><td><code>https://models.inference.ai.azure.com</code></td><td>OpenAI API </td></tr><tr><td>MARSHOAI_TEMPERATURE</td><td><code>float</code></td><td><code>null</code></td><td></td></tr><tr><td>MARSHOAI_TOP_P</td><td><code>float</code></td><td><code>null</code></td><td></td></tr><tr><td>MARSHOAI_MAX_TOKENS</td><td><code>int</code></td><td><code>null</code></td><td> token </td></tr><tr><td>MARSHOAI_ADDITIONAL_IMAGE_MODELS</td><td><code>list</code></td><td><code>[]</code></td><td><code>hunyuan-vision</code></td></tr></tbody></table><h4 id="" tabindex="-1"> <a class="header-anchor" href="#" aria-label="Permalink to &quot;&quot;"></a></h4><table tabindex="0"><thead><tr><th></th><th></th><th></th><th></th></tr></thead><tbody><tr><td>MARSHOAI_ENABLE_SUPPORT_IMAGE_TIP</td><td><code>bool</code></td><td><code>true</code></td><td></td></tr><tr><td>MARSHOAI_ENABLE_NICKNAME_TIP</t