n8n - 💡(How to fix) Fix Model selection ignored in chat — always defaults to Gemini 2.5 Flash (2.17.5) for gemini [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
n8n-io/n8n#28932Fetched 2026-04-24 06:13:17
View on GitHub
Comments
2
Participants
3
Timeline
9
Reactions
0
Author
Timeline (top)
commented ×2labeled ×2mentioned ×2subscribed ×2

Error Message

  • error: all
RAW_BUFFERClick to expand / collapse

Bug Description

When using Chat in AI10 and selecting Gemini as the provider, choosing different models (e.g., Gamma 4 or smaller models) does not work as expected. Regardless of the selected model, all requests are processed using Gemini 2.5 Flash.

To Reproduce

  1. Open n8n Chat
  2. Select provider: Gemini
  3. Choose any model (e.g., Gamma 4, small models, etc.)
  4. Send a message
  5. Observe the model used in the response

Expected behavior

The system should use the selected model for generating responses.

Debug Info

Debug info

core

  • n8nVersion: 2.17.5
  • platform: npm
  • nodeJsVersion: 24.13.0
  • nodeEnv: undefined
  • database: sqlite
  • executionMode: regular
  • concurrency: -1
  • license: enterprise (production)
  • consumerId: e8c6395c-24dc-4896-bb25-d1c117ec2952

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: filesystem

pruning

  • enabled: true
  • maxAge: 336 hours
  • maxCount: 10000 executions

client

  • userAgent: mozilla/5.0 (x11; linux x86_64) applewebkit/537.36 (khtml, like gecko) chrome/145.0.0.0 safari/537.36
  • isTouchDevice: false

Generated at: 2026-04-23T04:48:58.955Z

Operating System

Ubuntu linux 22.04

n8n Version

2.17.5

Node.js Version

24.13.0

Database

SQLite (default)

Execution mode

main (default)

Hosting

self hosted

extent analysis

TL;DR

The issue can be resolved by investigating and updating the model selection logic in the n8n Chat application to ensure the correct model is used for generating responses.

Guidance

  • Verify the model selection logic in the n8n Chat application to ensure it correctly handles different models (e.g., Gamma 4, smaller models) when Gemini is selected as the provider.
  • Check the application's configuration and settings to see if there are any overrides or defaults that might be causing the system to use Gemini 2.5 Flash regardless of the selected model.
  • Review the debug information provided to see if there are any clues about what might be causing the issue, such as version numbers or platform specifics.
  • Test the application with different models and providers to see if the issue is specific to Gemini or if it's a more general problem.

Example

No code snippet is provided as the issue does not include specific code details.

Notes

The issue may be related to a bug in the n8n Chat application or a configuration issue, but without more information, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: The best course of action is to investigate and update the model selection logic in the n8n Chat application to ensure the correct model is used for generating responses, as this will likely resolve the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

The system should use the selected model for generating responses.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING