Skip to content

Commit eb7329f

Browse files
committed
feat: Compatibility when @ is missing in block.signature
1 parent b71c5b0 commit eb7329f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/messages/responses-translation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ const createReasoningContent = (
238238
// when use in codex cli, reasoning id is empty, so it will cause miss cache occasionally
239239
const array = block.signature.split("@")
240240
const signature = array[0]
241-
const id = array[1]
241+
const id = array.length > 1 ? array[1] : undefined
242242
return {
243243
id,
244244
type: "reasoning",

0 commit comments

Comments
 (0)