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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user