feat(AnthropicVertexClient): add client compatibility type method (#9029)

* feat(AnthropicVertexClient): add client compatibility type method

* feat(aiCore): add support for AnthropicVertexAPIClient compatibility
This commit is contained in:
SuYao 2025-08-11 15:01:30 +08:00 committed by GitHub
parent 08457055b0
commit 6f420f88b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -91,7 +91,9 @@ export default class AiProvider {
}
const isAnthropicOrOpenAIResponseCompatible =
clientTypes.includes('AnthropicAPIClient') || clientTypes.includes('OpenAIResponseAPIClient')
clientTypes.includes('AnthropicAPIClient') ||
clientTypes.includes('OpenAIResponseAPIClient') ||
clientTypes.includes('AnthropicVertexAPIClient')
if (!isAnthropicOrOpenAIResponseCompatible) {
logger.silly('RawStreamListenerMiddleware is removed')
builder.remove(RawStreamListenerMiddlewareName)