mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 16:25:51 +00:00
feat: 全部类型问题解决
This commit is contained in:
@@ -613,7 +613,7 @@ async function generateTitle(
|
||||
},
|
||||
})
|
||||
|
||||
const _firstBlock = response.message.content[0] as unknown as Record<string, unknown> | undefined
|
||||
const _firstBlock = response?.message?.content?.[0] as unknown as Record<string, unknown> | undefined
|
||||
const title =
|
||||
_firstBlock?.type === 'text'
|
||||
? (_firstBlock.text as string)
|
||||
|
||||
Reference in New Issue
Block a user