actions
This commit is contained in:
parent
f5e8f435f4
commit
2406a2b31a
37
.github/workflows/pypi-publish.yml
vendored
Normal file
37
.github/workflows/pypi-publish.yml
vendored
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
name: Publish
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pypi-publish:
|
||||||
|
name: Upload release to PyPI
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: "3.x"
|
||||||
|
- name: Install pypa/build
|
||||||
|
run: >-
|
||||||
|
python -m
|
||||||
|
pip install
|
||||||
|
build
|
||||||
|
--user
|
||||||
|
- name: Build a binary wheel and a source tarball
|
||||||
|
run: >-
|
||||||
|
python -m
|
||||||
|
build
|
||||||
|
--sdist
|
||||||
|
--wheel
|
||||||
|
--outdir dist/
|
||||||
|
.
|
||||||
|
- name: Publish distribution to PyPI
|
||||||
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
with:
|
||||||
|
username: __token__
|
||||||
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
@ -25,7 +25,7 @@ _✨ 使用 Azure OpenAI 推理服务的聊天机器人插件 ✨_
|
|||||||
通过调用由 Azure OpenAI 驱动,GitHub Models 提供访问的生成式 AI 推理 API 来实现聊天的插件。
|
通过调用由 Azure OpenAI 驱动,GitHub Models 提供访问的生成式 AI 推理 API 来实现聊天的插件。
|
||||||
插件内置了猫娘小棉(Marsho)的人物设定,可以进行可爱的聊天!
|
插件内置了猫娘小棉(Marsho)的人物设定,可以进行可爱的聊天!
|
||||||
*谁不喜欢回复消息快又可爱的猫娘呢?*
|
*谁不喜欢回复消息快又可爱的猫娘呢?*
|
||||||
**※对 Azure AI Studio等的支持待定。**
|
**※对 Azure AI Studio等的支持待定。对 OneBot 以外的适配器支持未经过完全验证。**
|
||||||
|
|
||||||
## 🐱 设定
|
## 🐱 设定
|
||||||
#### 基本信息
|
#### 基本信息
|
||||||
@ -120,7 +120,7 @@ _✨ 使用 Azure OpenAI 推理服务的聊天机器人插件 ✨_
|
|||||||
| 配置项 | 必填 | 默认值 | 说明 |
|
| 配置项 | 必填 | 默认值 | 说明 |
|
||||||
| :---------------: | :--: | :----: | :----------------------------------------------------------: |
|
| :---------------: | :--: | :----: | :----------------------------------------------------------: |
|
||||||
| MARSHOAI_TOKEN | 是 | 无 | 调用 API 必需的 token |
|
| MARSHOAI_TOKEN | 是 | 无 | 调用 API 必需的 token |
|
||||||
| MARSHOAI_DEFAULT_MODEL | 否 | `gpt-4o` | Marsho 默认调用的模型 |
|
| MARSHOAI_DEFAULT_MODEL | 否 | `gpt-4o-mini` | Marsho 默认调用的模型 |
|
||||||
| MARSHOAI_PROMPT | 否 | 猫娘 Marsho 人设提示词 | Marsho 的基本系统提示词 |
|
| MARSHOAI_PROMPT | 否 | 猫娘 Marsho 人设提示词 | Marsho 的基本系统提示词 |
|
||||||
| MARSHOAI_ADDITIONAL_PROMPT | 否 | 无 | Marsho 的扩展系统提示词 |
|
| MARSHOAI_ADDITIONAL_PROMPT | 否 | 无 | Marsho 的扩展系统提示词 |
|
||||||
| MARSHOAI_ENABLE_PRAISES | 否 | `true` | 是否启用夸赞名单功能 |
|
| MARSHOAI_ENABLE_PRAISES | 否 | `true` | 是否启用夸赞名单功能 |
|
||||||
|
@ -2,7 +2,6 @@ from nonebot import on_command
|
|||||||
from nonebot.adapters import Message
|
from nonebot.adapters import Message
|
||||||
from nonebot.params import CommandArg
|
from nonebot.params import CommandArg
|
||||||
from nonebot.permission import SUPERUSER
|
from nonebot.permission import SUPERUSER
|
||||||
#from .acgnapis import *
|
|
||||||
from nonebot_plugin_alconna import on_alconna, MsgTarget
|
from nonebot_plugin_alconna import on_alconna, MsgTarget
|
||||||
from nonebot_plugin_alconna.uniseg import UniMessage, UniMsg
|
from nonebot_plugin_alconna.uniseg import UniMessage, UniMsg
|
||||||
from arclet.alconna import Alconna, Args, AllParam
|
from arclet.alconna import Alconna, Args, AllParam
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "nonebot-plugin-marshoai"
|
name = "nonebot-plugin-marshoai"
|
||||||
version = "0.1"
|
version = "0.1"
|
||||||
description = "Nonebot2插件,从哔哩哔哩会员购获取简易展览数据"
|
description = "Nonebot2插件,调用Azure OpenAI服务实现猫娘聊天"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = "<4.0,>=3.9"
|
requires-python = "<4.0,>=3.9"
|
||||||
authors = [{ name = "Asankilp", email = "asankilp@outlook.com" }]
|
authors = [{ name = "Asankilp", email = "asankilp@outlook.com" }]
|
||||||
@ -10,7 +10,8 @@ dependencies = [
|
|||||||
"nonebot-plugin-alconna>=0.48.0",
|
"nonebot-plugin-alconna>=0.48.0",
|
||||||
"azure-ai-inference>=1.0.0b4",
|
"azure-ai-inference>=1.0.0b4",
|
||||||
"zhDatetime>=1.1.0",
|
"zhDatetime>=1.1.0",
|
||||||
"aiohttp>=3.9"
|
"aiohttp>=3.9",
|
||||||
|
"httpx>=0.27.0"
|
||||||
]
|
]
|
||||||
license = { text = "MIT" }
|
license = { text = "MIT" }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user