fix: model not being passed correctly to tool

This commit is contained in:
Aiden Cline
2025-12-04 11:15:30 -06:00
parent 27c99b46cb
commit 350a32274a
2 changed files with 5 additions and 10 deletions

View File

@@ -690,7 +690,7 @@ export namespace SessionPrompt {
abort: options.abortSignal!,
messageID: input.processor.message.id,
callID: options.toolCallId,
extra: input.model,
extra: { model: input.model },
agent: input.agent.name,
metadata: async (val) => {
const match = input.processor.partFromToolCall(options.toolCallId)
@@ -907,12 +907,13 @@ export namespace SessionPrompt {
await ReadTool.init()
.then(async (t) => {
const model = await Provider.getModel(info.model.providerID, info.model.modelID)
const result = await t.execute(args, {
sessionID: input.sessionID,
abort: new AbortController().signal,
agent: input.agent!,
messageID: info.id,
extra: { bypassCwdCheck: true, ...info.model },
extra: { bypassCwdCheck: true, model },
metadata: async () => {},
})
pieces.push({