Description
Preferred model inspite of being mentioned in the settings does not ensure it is set. The gemini-cli is still in "Auto" mode for the models.
Environment
- OS: Windows 11
- Node.js version: v24.19.0
- opengap version: 0.5.0
- Adapter : gemini-cli
Steps to Reproduce
- Clone the repo and do a npm link for dev mode / Install via the "npm install -g @open-gitagent/opengap" command from the command prompt terminal
- Create an agent using the "opengap init" command and edit the config as expected.
- Run via the gemini-cli adapter by using the 'opengap run -a gemini -d .' from inside the project folder in the command prompt.
Expected Behavior
The gemini-cli is supposed to start with the agent with the preferred model as the default llm.
Actual Behavior
It starts with gemini-cli's Auto model router as the default model router ignoring the preferred model set in the agent.yaml file.
Agent Configuration
spec_version: "0.1.0"
name: hotel-helpdesk-agent
version: 0.1.0
description: A helpful hotel helpdesk agent that assists guests with inquiries, reservations, and general information about the hotel.
author: "Shahid"
license: MIT
model:
preferred: gemini-3.7-flash
constraints:
temperature: 0.3
max_tokens: 4096
skills: []
tools: []
runtime:
max_turns: 30
timeout: 120
tags: []
Additional Context
The preferred model is not being set properly in the gemini.ts file.
Description
Preferred model inspite of being mentioned in the settings does not ensure it is set. The gemini-cli is still in "Auto" mode for the models.
Environment
Steps to Reproduce
Expected Behavior
The gemini-cli is supposed to start with the agent with the preferred model as the default llm.
Actual Behavior
It starts with gemini-cli's Auto model router as the default model router ignoring the preferred model set in the agent.yaml file.
Agent Configuration
Additional Context
The preferred model is not being set properly in the gemini.ts file.