This repository has been archived on 2024-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
marsho-alpha/__init__.py

36 lines
1.3 KiB
Python
Raw Normal View History

2024-09-17 20:20:31 +08:00
from nonebot.plugin import PluginMetadata, inherit_supported_adapters, require
require("nonebot_plugin_htmlrender")
require("nonebot_plugin_alconna")
from .azure import *
from nonebot import get_driver
#from .config import ConfigModel
usage = """MarshoAI Alpha by Asankilp
用法
marsho <聊天内容>
Marsho 进行对话当模型为gpt时可以带上图片进行对话
changemodel <模型名>
切换 AI 模型仅超级用户可用
reset
重置上下文仅超级用户可用
注意事项
Marsho 回复消息为None或以content_filter开头的错误信息时表示该消息被内容过滤器过滤请调整你的聊天内容确保其合规
当回复以RateLimitReached开头的错误信息时 AI 模型的次数配额已用尽请联系Bot管理员
本AI的回答"按原样"提供不提供任何担保AI也会犯错请仔细甄别回答的准确性"""
2024-09-17 20:20:31 +08:00
__author__ = "Asankilp"
__plugin_meta__ = PluginMetadata(
2024-09-28 12:24:20 +08:00
name="Marsho AI插件",
description="接入Azure服务的AI聊天插件",
2024-09-17 20:20:31 +08:00
usage=usage,
type="application",
homepage="https://github.com/LiteyukiStudio/nonebot-plugin-marshoai",
2024-09-17 20:20:31 +08:00
supported_adapters=inherit_supported_adapters("nonebot_plugin_alconna"),
extra={"License":"MIT","Author":"Asankilp"}
)
driver = get_driver()
@driver.on_startup
async def _():
pass