Skip to content

[Bug] Preferred model not being set in gemini-cli adapter #100

Description

@Shahid-Musabbar

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

  1. 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
  2. Create an agent using the "opengap init" command and edit the config as expected.
  3. 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.

Image

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions