⚛️v0.2.2,新增1个配置项

This commit is contained in:
2024-10-05 01:36:57 +08:00
parent a0bfa7fa7f
commit c44049933d
5 changed files with 6 additions and 3 deletions

View File

@ -123,7 +123,8 @@ async def marsho(
messages=context.build(target.id, target.private)+[UserMessage(content=usermsg)],
model=model_name,
temperature=config.marshoai_temperature,
max_tokens=config.marshoai_max_tokens
max_tokens=config.marshoai_max_tokens,
top_p=config.marshoai_top_p
)
#await UniMessage(str(response)).send()
choice = response.choices[0]