Merge pull request #161 from auriti/fix/block-update-for-3p-providers
fix: block update command for 3P providers, align thinking block handling
This commit is contained in:
@@ -264,7 +264,8 @@ export function convertAnthropicMessagesToResponsesInput(
|
||||
|
||||
if (role === 'assistant') {
|
||||
const textBlocks = Array.isArray(content)
|
||||
? content.filter((block: { type?: string }) => block.type !== 'tool_use')
|
||||
? content.filter((block: { type?: string }) =>
|
||||
block.type !== 'tool_use' && block.type !== 'thinking')
|
||||
: content
|
||||
const parts = convertContentBlocksToResponsesParts(textBlocks, 'assistant')
|
||||
if (parts.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user