mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-06-18 20:07:45 +00:00
🔥 删除无用import
This commit is contained in:
parent
e50c6d9966
commit
ef52db969d
@ -22,10 +22,9 @@ from nonebot_plugin_alconna.uniseg import (
|
|||||||
Text,
|
Text,
|
||||||
UniMessage,
|
UniMessage,
|
||||||
UniMsg,
|
UniMsg,
|
||||||
get_message_id,
|
|
||||||
get_target,
|
get_target,
|
||||||
)
|
)
|
||||||
from nonebot_plugin_argot import Argot
|
from nonebot_plugin_argot import Argot # type: ignore
|
||||||
from openai import AsyncOpenAI, AsyncStream
|
from openai import AsyncOpenAI, AsyncStream
|
||||||
from openai.types.chat import ChatCompletion, ChatCompletionChunk, ChatCompletionMessage
|
from openai.types.chat import ChatCompletion, ChatCompletionChunk, ChatCompletionMessage
|
||||||
|
|
||||||
@ -247,7 +246,7 @@ class MarshoHandler:
|
|||||||
Argot(
|
Argot(
|
||||||
"detail",
|
"detail",
|
||||||
Text(await process_completion_to_details(response)),
|
Text(await process_completion_to_details(response)),
|
||||||
command=f"detail",
|
command="detail",
|
||||||
expired_at=timedelta(minutes=5),
|
expired_at=timedelta(minutes=5),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -23,7 +23,7 @@ from nonebot_plugin_alconna import (
|
|||||||
message_reaction,
|
message_reaction,
|
||||||
on_alconna,
|
on_alconna,
|
||||||
)
|
)
|
||||||
from nonebot_plugin_argot.extension import ArgotExtension
|
from nonebot_plugin_argot.extension import ArgotExtension # type: ignore
|
||||||
|
|
||||||
from .config import config
|
from .config import config
|
||||||
from .constants import INTRODUCTION, SUPPORT_IMAGE_MODELS
|
from .constants import INTRODUCTION, SUPPORT_IMAGE_MODELS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user