mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-08 06:19:05 +08:00
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:
parent
08457055b0
commit
6f420f88b1
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user