chore: better erroring

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Simon
2026-01-13 14:16:51 +08:00
committed by GitHub
parent d5b8019fb1
commit 35d1fd1166

View File

@@ -145,7 +145,7 @@ export class OpenAIClient implements LLMClient {
const argString = normalizedChoice.message?.tool_calls?.[0]?.function?.arguments
if (!argString) {
throw new InvokeError(
InvokeErrorType.NO_TOOL_CALL,
InvokeErrorType.INVALID_TOOL_ARGS,
'No tool call arguments found',
normalizedData
)