优化OpenAI请求参数,默认传入NotGiven

This commit is contained in:
2025-01-30 15:24:49 +08:00
parent 17f18fa56a
commit b28e6921c5
2 changed files with 13 additions and 7 deletions

View File

@ -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}"
),