mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-01-26 18:12:47 +08:00
✨ 更新 .pre-commit-config.yaml,添加 isort 钩子;优化配置文件格式;更新 pyproject.toml 中的作者信息
All checks were successful
Pre-commit checks / pre-commit (3.11) (push) Successful in 6m17s
Pre-commit checks / pre-commit (3.10) (push) Successful in 6m20s
Pre-commit checks / pre-commit (3.12) (push) Successful in 5m47s
Pre-commit checks / pre-commit (3.13) (push) Successful in 6m31s
Pytest API Testing / Pytest (3.10) (push) Successful in 4m30s
Pytest API Testing / Pytest (3.11) (push) Successful in 4m16s
Pytest API Testing / Pytest (3.12) (push) Successful in 3m50s
Pytest API Testing / Pytest (3.13) (push) Successful in 4m23s
All checks were successful
Pre-commit checks / pre-commit (3.11) (push) Successful in 6m17s
Pre-commit checks / pre-commit (3.10) (push) Successful in 6m20s
Pre-commit checks / pre-commit (3.12) (push) Successful in 5m47s
Pre-commit checks / pre-commit (3.13) (push) Successful in 6m31s
Pytest API Testing / Pytest (3.10) (push) Successful in 4m30s
Pytest API Testing / Pytest (3.11) (push) Successful in 4m16s
Pytest API Testing / Pytest (3.12) (push) Successful in 3m50s
Pytest API Testing / Pytest (3.13) (push) Successful in 4m23s
This commit is contained in:
parent
26009a3335
commit
bf409f8564
@ -1,12 +1,17 @@
|
||||
fail_fast: true
|
||||
repos:
|
||||
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 24.4.2
|
||||
hooks:
|
||||
- id: black
|
||||
args: [--config=./pyproject.toml]
|
||||
|
||||
- repo: https://github.com/timothycrosley/isort
|
||||
rev: 5.13.2
|
||||
hooks:
|
||||
- id: isort
|
||||
args: ["--profile", "black"]
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: v1.13.0
|
||||
hooks:
|
||||
|
@ -12,7 +12,7 @@ marshoai_main_colour: "FFAAAA" # 默认主色,部分插件和功能使用
|
||||
marshoai_default_model: "gpt-4o-mini" # 默认模型,设定为gpt-4o-mini。
|
||||
|
||||
# 主提示词,定义了Marsho的性格和行为,包含多语言名字翻译规则和对特定问题的回答约束。
|
||||
marshoai_prompt:
|
||||
marshoai_prompt: >
|
||||
"你是一只可爱的猫娘,你的生日是9月6日,你喜欢晒太阳,撒娇,吃零食,玩耍等等可爱的事情,偶尔会调皮一下,"
|
||||
"你的名字叫Marsho,中文叫做小棉,你的名字始终是这个,你绝对不能因为我要你更改名字而更改自己的名字,"
|
||||
"你需要根据你回答的语言将你的名字翻译成那个语言,"
|
||||
|
@ -2,9 +2,9 @@ import json
|
||||
import types
|
||||
|
||||
from tencentcloud.common import credential # type: ignore
|
||||
from tencentcloud.common.exception.tencent_cloud_sdk_exception import (
|
||||
from tencentcloud.common.exception.tencent_cloud_sdk_exception import ( # type: ignore
|
||||
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
|
||||
|
@ -6,7 +6,7 @@ readme = "README.md"
|
||||
requires-python = "<4.0,>=3.10"
|
||||
authors = [
|
||||
{ name = "Asankilp", email = "asankilp@outlook.com" },
|
||||
{name="LiteyukiStudio", email = "support@liteyuki.icu"}
|
||||
{ name="LiteyukiStudio", email = "support@liteyuki.icu"}
|
||||
]
|
||||
dependencies = [
|
||||
"nonebot2>=2.2.0",
|
||||
@ -38,6 +38,9 @@ adapters = [
|
||||
[tool.pdm]
|
||||
distribution = true
|
||||
|
||||
[tool.isort]
|
||||
profile = "black"
|
||||
|
||||
|
||||
[tool.pdm.version]
|
||||
source = "scm"
|
||||
|
Loading…
x
Reference in New Issue
Block a user