Skip to content
Discussion options

You must be logged in to vote

Hi @mohamedDev, no gateway-side state is needed here, and I could not reproduce a gap in APISIX. Two clarifications first:

  1. ai-proxy does not translate between the OpenAI format and Gemini's native generateContent format. The gemini provider proxies to Google's own OpenAI-compatible endpoint (/v1beta/openai/chat/completions).
  2. That compatibility layer already round-trips thought signatures statelessly: responses carry them at tool_calls[].extra_content.google.thought_signature, and the client sends them back unchanged in the next request's history. See https://ai.google.dev/gemini-api/docs/openai

Environment

  • APISIX 3.17.0 (apache/apisix:3.17.0-debian, standalone mode), gateway on :9080
  • M…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mohamedDev
Comment options

Answer selected by mohamedDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants