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