fix: optional chaining on chat.params provider/model access

This commit is contained in:
Vectry
2026-02-10 11:49:17 +00:00
parent bdd6362c1a
commit 7e44ccb9e7
2 changed files with 3 additions and 3 deletions

View File

@@ -207,8 +207,8 @@ const plugin: Plugin = async ({ project, directory, worktree }) => {
name: "chat.params",
metadata: safeJsonValue({
agent: input.agent,
model: input.model.id,
provider: input.provider.info.id,
model: input.model?.id,
provider: input.provider?.info?.id,
temperature: output.temperature,
topP: output.topP,
topK: output.topK,