mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-03-10 15:21:02 +08:00
更新 .gitignore,修改 pypi-publish.yml 以删除冲突发布触发条件;调整 marsho.py 中的命令名称;更新使用文档。
This commit is contained in:
parent
8ec3faf245
commit
3f0ebd9327
3
.github/workflows/pypi-publish.yml
vendored
3
.github/workflows/pypi-publish.yml
vendored
@ -1,9 +1,6 @@
|
|||||||
name: Publish
|
name: Publish
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- 'v*'
|
|
||||||
release:
|
release:
|
||||||
types:
|
types:
|
||||||
- published
|
- published
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -170,7 +170,6 @@ cython_debug/
|
|||||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||||
#.idea/
|
#.idea/
|
||||||
bot.py
|
bot.py
|
||||||
pdm.lock
|
|
||||||
praises.json
|
praises.json
|
||||||
*.bak
|
*.bak
|
||||||
config/
|
config/
|
||||||
|
@ -33,10 +33,12 @@ MarshoAI 兼容 DeepSeek-R1 模型,你可通过以下步骤来使用:
|
|||||||
MARSHOAI_TOKEN="<你的 API Key>"
|
MARSHOAI_TOKEN="<你的 API Key>"
|
||||||
MARSHOAI_AZURE_ENDPOINT="https://api.deepseek.com"
|
MARSHOAI_AZURE_ENDPOINT="https://api.deepseek.com"
|
||||||
MARSHOAI_DEFAULT_MODEL="deepseek-reasoner"
|
MARSHOAI_DEFAULT_MODEL="deepseek-reasoner"
|
||||||
|
MARSHOAI_ENABLE_PLUGINS=false
|
||||||
```
|
```
|
||||||
你可修改 `MARSHOAI_DEFAULT_MODEL` 为 其它模型名来调用其它 DeepSeek 模型。
|
你可修改 `MARSHOAI_DEFAULT_MODEL` 为 其它模型名来调用其它 DeepSeek 模型。
|
||||||
:::tip
|
:::tip
|
||||||
如果使用 one-api 作为中转,你可将 `MARSHOAI_AZURE_ENDPOINT` 设置为 one-api 的地址,将 `MARSHOAI_TOKEN` 设为 one-api 配置的令牌,在 one-api 中添加 DeepSeek 渠道。
|
如果使用 one-api 作为中转,你可将 `MARSHOAI_AZURE_ENDPOINT` 设置为 one-api 的地址,将 `MARSHOAI_TOKEN` 设为 one-api 配置的令牌,在 one-api 中添加 DeepSeek 渠道。
|
||||||
|
同样可使用其它提供商(例如 [SiliconFlow](https://siliconflow.cn/))提供的 DeepSeek 等模型。
|
||||||
:::
|
:::
|
||||||
|
|
||||||
### 使用 vLLM 部署本地模型
|
### 使用 vLLM 部署本地模型
|
||||||
|
@ -61,7 +61,7 @@ marsho_cmd = on_alconna(
|
|||||||
)
|
)
|
||||||
resetmem_cmd = on_alconna(
|
resetmem_cmd = on_alconna(
|
||||||
Alconna(
|
Alconna(
|
||||||
config.marshoai_default_name + ".resetmem",
|
config.marshoai_default_name + ".reset",
|
||||||
),
|
),
|
||||||
priority=10,
|
priority=10,
|
||||||
block=True,
|
block=True,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user