mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-08-01 22:59:53 +00:00
v0.3.3,动态版本号与版本号输出
This commit is contained in:
@ -4,28 +4,14 @@ require("nonebot_plugin_localstore")
|
||||
from .azure import *
|
||||
from nonebot import get_driver, logger
|
||||
from .config import ConfigModel, config
|
||||
from .constants import USAGE
|
||||
import nonebot_plugin_localstore as store
|
||||
usage = """MarshoAI Beta by Asankilp
|
||||
用法:
|
||||
marsho <聊天内容> : 与 Marsho 进行对话。当模型为 GPT-4o(-mini) 等时,可以带上图片进行对话。
|
||||
nickname [昵称] : 为自己设定昵称,设置昵称后,Marsho 会根据你的昵称进行回答。使用'nickname reset'命令可清除自己设定的昵称。
|
||||
reset : 重置当前会话的上下文。 ※需要加上命令前缀使用(默认为'/')。
|
||||
超级用户命令(均需要加上命令前缀使用):
|
||||
changemodel <模型名> : 切换全局 AI 模型。
|
||||
contexts : 返回当前会话的上下文列表。 ※当上下文包含图片时,不要使用此命令。
|
||||
praises : 返回夸赞名单的提示词。
|
||||
usermsg <消息> : 往当前会话添加用户消息(UserMessage)。
|
||||
assistantmsg <消息> : 往当前会话添加助手消息(AssistantMessage)。
|
||||
savecontext <文件名> : 保存当前会话的上下文至插件数据目录下的contexts/<文件名>.json里。
|
||||
loadcontext <文件名> : 从插件数据目录下的contexts/<文件名>.json里读取上下文并覆盖到当前会话。
|
||||
※本AI的回答"按原样"提供,不提供任何担保。AI也会犯错,请仔细甄别回答的准确性。"""
|
||||
|
||||
|
||||
__author__ = "Asankilp"
|
||||
__plugin_meta__ = PluginMetadata(
|
||||
name="Marsho AI插件",
|
||||
description="接入Azure服务的AI聊天插件",
|
||||
usage=usage,
|
||||
usage=USAGE,
|
||||
type="application",
|
||||
config=ConfigModel,
|
||||
homepage="https://github.com/LiteyukiStudio/nonebot-plugin-marshoai",
|
||||
@ -43,4 +29,4 @@ async def _():
|
||||
logger.warning("token 未配置。可能无法进行聊天。")
|
||||
else:
|
||||
logger.info("token 已配置~!🐾")
|
||||
pass
|
||||
logger.info("マルショは、高性能ですから!")
|
||||
|
Reference in New Issue
Block a user