Skip to content

docs: add Gemini, Vertex AI, and Anthropic examples to ai-proxy plugin#13174

Open
Yilialinn wants to merge 4 commits intoapache:masterfrom
Yilialinn:docs/update-ai-proxy
Open

docs: add Gemini, Vertex AI, and Anthropic examples to ai-proxy plugin#13174
Yilialinn wants to merge 4 commits intoapache:masterfrom
Yilialinn:docs/update-ai-proxy

Conversation

@Yilialinn
Copy link
Copy Markdown
Contributor

@Yilialinn Yilialinn commented Apr 7, 2026

Summary

  • Add missing provider examples to the ai-proxy plugin documentation for providers that were added in previous PRs (e.g. feat: support vertex-ai #12933) but lacked usage examples.
  • New example sections added (both EN and ZH):
    • Proxy to Gemini — chat completion using Gemini API with API key auth
    • Proxy to Vertex AI Chat Completion — using GCP service account authentication
    • Proxy to Vertex AI Embedding Models — embedding models with GCP auth
    • Proxy to Anthropic — Claude chat completion with x-api-key header auth
    • Convert Anthropic Requests to OpenAI-Compatible Backend — protocol conversion via /v1/messages URI

Add missing provider examples to the ai-proxy plugin documentation:
- Proxy to Gemini (chat completion)
- Proxy to Vertex AI (chat completion with GCP service account auth)
- Proxy to Vertex AI (embedding models)
- Proxy to Anthropic (Claude chat completion)
- Convert Anthropic requests to OpenAI-compatible backend

These providers were added in previous PRs but lacked documentation
examples. Both English and Chinese docs are updated.

Ref: api7/docs#892
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. doc Documentation things labels Apr 7, 2026
@Yilialinn Yilialinn requested a review from Copilot April 9, 2026 07:34
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds missing usage examples for previously supported LLM providers in the ai-proxy plugin docs (EN + ZH), covering Gemini, Vertex AI (chat + embeddings), Anthropic, and Anthropic→OpenAI protocol conversion.

Changes:

  • Added new provider example sections: Gemini, Vertex AI (chat completion), Vertex AI (embeddings), Anthropic, and Anthropic request conversion.
  • Updated several Chinese sentences/phrasing (notably switching from “您” to “你” in some places).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
docs/zh/latest/plugins/ai-proxy.md Adds Chinese provider examples and adjusts wording in a few existing passages.
docs/en/latest/plugins/ai-proxy.md Adds English provider examples including Gemini, Vertex AI, Anthropic, and protocol conversion.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Yilialinn Yilialinn force-pushed the docs/update-ai-proxy branch from a480b0a to 2cf7bb8 Compare April 13, 2026 02:26
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Apr 13, 2026
…support

- Fix Azure OpenAI example provider and endpoint URL typo in EN doc
- Add timeout max value (600000) and keepalive_pool min value (1)
- Add Gemini and Vertex AI providers, provider_conf, and auth.gcp attributes to ZH doc
- Update ZH frontmatter and description to mention Gemini and Vertex AI
- Fix kafka-logger JSON indentation in EN doc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Documentation things size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants