mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-02-07 15:26:11 +08:00
🎨 更新 .pre-commit-config.yaml,启用额外的钩子;优化代码格式,确保一致性;更新 pyproject.toml,添加新作者信息
This commit is contained in:
parent
849cc24968
commit
26009a3335
@ -1,9 +1,5 @@
|
||||
fail_fast: true
|
||||
repos:
|
||||
- repo: https://github.com/timothycrosley/isort
|
||||
rev: 5.13.2
|
||||
hooks:
|
||||
- id: isort
|
||||
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 24.4.2
|
||||
|
@ -5,12 +5,16 @@ from typing import Optional
|
||||
|
||||
import nonebot_plugin_localstore as store
|
||||
from arclet.alconna import Alconna, AllParam, Args
|
||||
from azure.ai.inference.models import (AssistantMessage,
|
||||
ChatCompletionsToolCall,
|
||||
CompletionsFinishReason,
|
||||
ImageContentItem, ImageUrl,
|
||||
TextContentItem, ToolMessage,
|
||||
UserMessage)
|
||||
from azure.ai.inference.models import (
|
||||
AssistantMessage,
|
||||
ChatCompletionsToolCall,
|
||||
CompletionsFinishReason,
|
||||
ImageContentItem,
|
||||
ImageUrl,
|
||||
TextContentItem,
|
||||
ToolMessage,
|
||||
UserMessage,
|
||||
)
|
||||
from azure.core.credentials import AzureKeyCredential
|
||||
from nonebot import get_driver, logger, on_command, on_message
|
||||
from nonebot.adapters import Event, Message
|
||||
|
@ -2,6 +2,7 @@ import importlib
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
|
||||
# import importlib.util
|
||||
import traceback
|
||||
|
||||
|
@ -7,6 +7,7 @@ from typing import Any, Optional
|
||||
|
||||
import httpx
|
||||
import nonebot_plugin_localstore as store
|
||||
|
||||
# from zhDateTime import DateTime
|
||||
from azure.ai.inference.aio import ChatCompletionsClient
|
||||
from azure.ai.inference.models import SystemMessage
|
||||
|
@ -2,12 +2,11 @@ import json
|
||||
import types
|
||||
|
||||
from tencentcloud.common import credential # type: ignore
|
||||
from tencentcloud.common.exception.tencent_cloud_sdk_exception import \
|
||||
TencentCloudSDKException # type: ignore
|
||||
from tencentcloud.common.profile.client_profile import \
|
||||
ClientProfile # type: ignore
|
||||
from tencentcloud.common.profile.http_profile import \
|
||||
HttpProfile # type: ignore
|
||||
from tencentcloud.common.exception.tencent_cloud_sdk_exception import (
|
||||
TencentCloudSDKException,
|
||||
) # type: ignore
|
||||
from tencentcloud.common.profile.client_profile import ClientProfile # type: ignore
|
||||
from tencentcloud.common.profile.http_profile import HttpProfile # type: ignore
|
||||
from tencentcloud.hunyuan.v20230901 import hunyuan_client # type: ignore
|
||||
from tencentcloud.hunyuan.v20230901 import models # type: ignore
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user