Skip to content

fix(ai-chat-agent): add Gemini chat completions endpoint - #699

Merged
navneetkumar-pim-webkul merged 1 commit into
unopim:3.xfrom
vipinkutthi-webkul:fix/ai-chat-agent
Sep 14, 2026
Merged

navneetkumar-pim-webkul merged 1 commit into
unopim:3.xfrom
vipinkutthi-webkul:fix/ai-chat-agent

Conversation

@vipinkutthi-webkul

Copy link
Copy Markdown
Contributor

Issue Reference

No issue reference.

Description

Fix the Gemini chat endpoint in the AI Chat Agent client.

Previously, Gemini requests fell through to the default OpenAI-compatible endpoint:

/v1/chat/completions

Gemini's OpenAI-compatible API uses:

/openai/chat/completions

This change adds a dedicated gemini provider case so Gemini requests are sent to the correct endpoint while preserving the existing endpoints for Anthropic and other OpenAI-compatible providers.

How To Test This?

  1. Configure the AI Chat Agent with:

    • Provider: gemini
    • A valid Gemini API key
    • A Gemini model
  2. Send a chat request through the AI Chat Agent.

  3. Verify that the request uses /openai/chat/completions.

  4. Verify that the Gemini response is returned successfully.

  5. Verify that Anthropic requests still use /v1/messages.

  6. Verify that other OpenAI-compatible providers still use /v1/chat/completions.

@navneetkumar-pim-webkul
navneetkumar-pim-webkul merged commit f2cfa43 into unopim:3.x Sep 14, 2026
19 checks passed
navneetkumar-pim-webkul added a commit that referenced this pull request Sep 17, 2026
Eight merged pull requests since v3.1.0 carried no changelog entry: the
role-escalation and MagicAI SSRF fixes (#689, #690, #691), the export
column selection and category keyword matching fixes (#697, #698), the
media replacement fix (#709), the Gemini endpoint (#699), the channel
deletion fix (#688), the purifier cache race (#675), and the admin UI
and configuration work squashed into #700.

3.1.1 is a patch release, so everything is filed under bug fixes and
improvements; no feature section.

The heading is stamped 3.1.1 to match Core::VERSION, which the branch
already carries.
navneetkumar-pim-webkul added a commit that referenced this pull request Sep 17, 2026
Eight merged pull requests since v3.1.0 carried no changelog entry: the
role-escalation and MagicAI SSRF fixes (#689, #690, #691), the export
column selection and category keyword matching fixes (#697, #698), the
media replacement fix (#709), the Gemini endpoint (#699), the channel
deletion fix (#688), the purifier cache race (#675), and the admin UI
and configuration work squashed into #700.

3.1.1 is a patch release, so everything is filed under bug fixes and
improvements; no feature section.

The heading is stamped 3.1.1 to match Core::VERSION, which the branch
already carries.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants