mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
error
This commit is contained in:
parent
a78a6169f8
commit
fecfbd924a
1 changed files with 4 additions and 4 deletions
|
|
@ -339,8 +339,8 @@ class ChatThreadService extends Disposable implements IChatThreadService {
|
|||
let toolResult: Awaited<ReturnType<ToolFns[ToolName]>>
|
||||
try {
|
||||
toolResult = await this._toolsService.toolFns[toolName](tool.params)
|
||||
} catch (e) {
|
||||
this._setStreamState(threadId, { error: e })
|
||||
} catch (error) {
|
||||
this._setStreamState(threadId, { error })
|
||||
shouldContinue = false
|
||||
break
|
||||
}
|
||||
|
|
@ -349,8 +349,8 @@ class ChatThreadService extends Disposable implements IChatThreadService {
|
|||
let toolResultStr: string
|
||||
try {
|
||||
toolResultStr = this._toolsService.toolResultToString[toolName](toolResult as any) // typescript is so bad it doesn't even couple the type of ToolResult with the type of the function being called here
|
||||
} catch (e) {
|
||||
this._setStreamState(threadId, { error: e })
|
||||
} catch (error) {
|
||||
this._setStreamState(threadId, { error })
|
||||
shouldContinue = false
|
||||
break
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue