更新 .gitignore,修改 pypi-publish.yml 以删除冲突发布触发条件;调整 marsho.py 中的命令名称;更新使用文档。

This commit is contained in:
Asankilp 2025-02-12 09:58:43 +08:00
parent 8ec3faf245
commit 3f0ebd9327
5 changed files with 2910 additions and 6 deletions

View File

@ -1,9 +1,6 @@
name: Publish
on:
push:
tags:
- 'v*'
release:
types:
- published

1
.gitignore vendored
View File

@ -170,7 +170,6 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
bot.py
pdm.lock
praises.json
*.bak
config/

View File

@ -33,10 +33,12 @@ MarshoAI 兼容 DeepSeek-R1 模型,你可通过以下步骤来使用:
MARSHOAI_TOKEN="<你的 API Key>"
MARSHOAI_AZURE_ENDPOINT="https://api.deepseek.com"
MARSHOAI_DEFAULT_MODEL="deepseek-reasoner"
MARSHOAI_ENABLE_PLUGINS=false
```
你可修改 `MARSHOAI_DEFAULT_MODEL` 为 其它模型名来调用其它 DeepSeek 模型。
:::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 部署本地模型

View File

@ -61,7 +61,7 @@ marsho_cmd = on_alconna(
)
resetmem_cmd = on_alconna(
Alconna(
config.marshoai_default_name + ".resetmem",
config.marshoai_default_name + ".reset",
),
priority=10,
block=True,

2906
pdm.lock generated Normal file

File diff suppressed because it is too large Load Diff