mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-08-01 22:59:53 +00:00
🐱v0.3.4,优化marsho命令参数的获取,自我介绍文本更新
This commit is contained in:
@ -30,13 +30,13 @@ async def get_image_b64(url):
|
||||
return None
|
||||
|
||||
async def make_chat(client: ChatCompletionsClient, msg, model_name: str):
|
||||
return await client.complete(
|
||||
messages=msg,
|
||||
model=model_name,
|
||||
temperature=config.marshoai_temperature,
|
||||
max_tokens=config.marshoai_max_tokens,
|
||||
top_p=config.marshoai_top_p
|
||||
)
|
||||
return await client.complete(
|
||||
messages=msg,
|
||||
model=model_name,
|
||||
temperature=config.marshoai_temperature,
|
||||
max_tokens=config.marshoai_max_tokens,
|
||||
top_p=config.marshoai_top_p
|
||||
)
|
||||
def get_praises():
|
||||
praises_file = store.get_plugin_data_file("praises.json") # 夸赞名单文件使用localstore存储
|
||||
if not os.path.exists(praises_file):
|
||||
|
Reference in New Issue
Block a user