ruff, typing, api, bug fix
This commit is contained in:
@@ -11,6 +11,7 @@ from src.chat.utils.prompt_builder import Prompt, global_prompt_manager
|
||||
from src.manager.async_task_manager import AsyncTask, async_task_manager
|
||||
from src.plugin_system.apis import send_api
|
||||
|
||||
|
||||
async def send_loading(chat_id: str, content: str):
|
||||
await send_api.custom_to_stream(
|
||||
message_type="loading",
|
||||
@@ -19,7 +20,8 @@ async def send_loading(chat_id: str, content: str):
|
||||
storage_message=False,
|
||||
show_log=True,
|
||||
)
|
||||
|
||||
|
||||
|
||||
async def send_unloading(chat_id: str):
|
||||
await send_api.custom_to_stream(
|
||||
message_type="loading",
|
||||
@@ -28,4 +30,3 @@ async def send_unloading(chat_id: str):
|
||||
storage_message=False,
|
||||
show_log=True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user