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.4 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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也会犯错请仔细甄别回答的准确性。"""
__author__ = "Asankilp"
__plugin_meta__ = PluginMetadata(
name="Marsho AI插件",
description="接入Azure服务的AI聊天插件",
usage=usage,
type="application",
homepage="https://github.com/LiteyukiStudio/nonebot-plugin-acgnshow",
supported_adapters=inherit_supported_adapters("nonebot_plugin_alconna"),
extra={"License":"MIT","Author":"Asankilp"}
)
driver = get_driver()
@driver.on_startup
async def _():
pass