Feature/vertex multi publisher#3522
Open
ggrandez wants to merge 17 commits intohigress-group:mainfrom
Open
Conversation
…a validación de herramientas en las solicitudes de chat
…or Vertex y agregar advertencias sobre el uso de controladores de eventos obsoletos en la respuesta de transmisión.
…r con el esquema de herramientas de Vertex AI.
…I, permitiendo el uso del endpoint /v1/messages con herramientas.
…o soportadas en los parámetros.
…ón de respuesta de OpenAI a Claude
…isher support tests
Author
|
Hi! CLA is now signed by all committers and this PR is ready for review. Could a maintainer approve the pending workflow runs from this fork so CI can execute? @johnlanni @rinfx @wydream — any feedback is welcome, thanks! |
Author
|
Hi @johnlanni @rinfx @wydream 👋 Just a friendly ping on this PR! The branch is recently updated with 大家好 @johnlanni @rinfx @wydream 👋 友好地提醒一下这个 PR!分支已与 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR improves Vertex AI support in
ai-proxywith multi-publisher routing and protocol conversion robustness, especially for Claude/Mistral scenarios.Main outcomes:
What changed
1) Vertex multi-publisher routing
routeRawPredictfor publishers requiring rawPredict-style endpoints (e.g. Anthropic/Mistral).routeOpenAICompatiblefor models using Vertex OpenAI-compatible endpoint.routeNativeVertexfallback for Express Mode Google/native flow.vertexPublisher.2) Request conversion and protocol handling
strings.ToLowerbefore mapping).google/prefix for unqualified models).3) Tests
4) Documentation
plugins/wasm-go/extensions/ai-proxy/VERTEX_CLAUDE_PROTOCOL_FIX.mdScope (files changed)
plugins/wasm-go/extensions/ai-proxy/provider/vertex.goplugins/wasm-go/extensions/ai-proxy/provider/provider.goplugins/wasm-go/extensions/ai-proxy/provider/claude_to_openai.goplugins/wasm-go/extensions/ai-proxy/provider/vertex_test.goplugins/wasm-go/extensions/ai-proxy/test/vertex.goplugins/wasm-go/extensions/ai-proxy/provider/claude_to_openai_test.goplugins/wasm-go/extensions/ai-proxy/main.goplugins/wasm-go/extensions/ai-proxy/main_test.goAI Coding Disclosure (required)
AI tools used
Prompts / instructions used with AI tools
vertexPublisheroverride to force publisher routing regardless of model prefix."/v1/messagescompatibility in Vertex by converting/sanitizing request body before provider-specific handling."AI Coding Summary
vertexPublishercan override detection.Commits included (author: Gad Grandez)