mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-07-31 08:59:51 +00:00
✨ 优化OpenAI请求参数,默认传入NotGiven
This commit is contained in:
@ -449,7 +449,11 @@ with contextlib.suppress(ImportError): # 优化先不做()
|
||||
client=client,
|
||||
model_name=model_name,
|
||||
msg=[
|
||||
get_prompt(),
|
||||
(
|
||||
get_prompt()
|
||||
if model_name.lower() not in NO_SYSPROMPT_MODELS
|
||||
else None
|
||||
),
|
||||
UserMessage(
|
||||
content=f"*{user_nickname}{config.marshoai_poke_suffix}"
|
||||
),
|
||||
|
Reference in New Issue
Block a user