gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

gemini-cli不能使用gemini-2.5-pro,启动后自动被切换到gemini-2.5-flash。根本无法使用

Open zhengguangli opened this issue 1 year ago • 13 comments

What would you like to be added?

gemini-cli不能使用gemini-2.5-pro,启动后自动被切换到gemini-2.5-flash。根本无法使用

Why is this needed?

gemini-cli不能使用gemini-2.5-pro,启动后自动被切换到gemini-2.5-flash。根本无法使用

Additional context

gemini-cli不能使用gemini-2.5-pro,启动后自动被切换到gemini-2.5-flash。根本无法使用

zhengguangli avatar Jun 28 '25 03:06 zhengguangli

gemini-cli cannot use gemini-2.5-pro, and automatically switches to gemini-2.5-flash after startup. It cannot be used at all

zhengguangli avatar Jun 28 '25 03:06 zhengguangli

Can you provide some more information? What kind of errors were you seeing? How are you authenticated (API Key, Google Account)?

allenhutchison avatar Jun 28 '25 03:06 allenhutchison

-> OpenManus git:(main) ✗ gemini --model="gemini-2.5-pro" --yolo --checkpointing Tips for getting started:

  1. Ask questions, edit files, or run commands.
  2. Be specific for the best results.
  3. /help for more information.

Tips for getting started:

  1. Ask questions, edit files, or run commands.
  2. Be specific for the best results.
  3. /help for more information.

current GEMINI.md

ℹ ⚡ Slow response times detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session. ⚡ To avoid this you can either upgrade to Standard tier. See: https://goo.gle/set-up-gemini-code-assist ⚡ Or you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key ⚡ You can switch authentication methods by typing /auth ╭────────────────────────╮ │ ✔ ReadFile GEMINI.md │ ╰────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────╮ │ ✔ edit_block (desktop-commander MCP Server) {"old_string":"--- Context from: ../../.gem… │ │ │ │ Search content not found in /Users/lizhengguang/Desktop/OpenManus/GEMINI.md. │ │ The closest match was " various agent types (e.g., manus, mcp, react, │ │ swe, browser, data_analysis). │ │ * app/flow/: Manages the flow and orchestration of agents. │ │ * app/mcp/: Contains components related to the Multi-Agent │ │ Communication Protocol (MCP). │ │ * app/prompt/: Stores prompt templates for different agents and │ │ tools. │ │ * app/sandbox/: Implements the sandbox environment for safe code │ │ execution. │ │ * app/tool/: Houses various tools that agents can utilize (e.g., │ │ bash, browser_use_tool, file_operators, web_search, │ │ python_execute, chart_visualization, search). │ │ * assets/: Stores static assets like images. │ │ * config/: Contains configuration files, including example LLM │ │ configurations. │ │ * examples/: Provides usage examples and benchmarks. │ │ * tests/: Contains unit and integration tests for the project. │ │ * run_flow.py, run_mcp_server.py, run_mcp.py, main.py: Entry │ │ points for different modes of operation. │ │ │ │ ## 4. Installation │ │ │ │ The recommended installation method uses uv for faster dependency │ │ management: │ │ │ │ 1. Clone the repository: │ │ ```bash │ │ git clone https://github.com/Foundatio" with only 23% similarity, which │ │ is below the 70% threshold. (Fuzzy search completed in 19.08ms) │ │ │ │ Log entry saved for analysis. Use the following command to check the log: │ │ Check log: │ │ /Users/lizhengguang/.claude-server-commander-logs/fuzzy-search.log │ ╰────────────────────────────────────────────────────────────────────────────────────────────╯

⠙ Reflecting on GEMINI.md (esc to cancel, 2s)

Using 2 GEMINI.md files and 2 MCP servers (ctrl+t to view) YOLO mode (ctrl + y to toggle)

~/Desktop/OpenManus (main*) no sandbox (see /docs) gemini-2.5-flash (99% context left)

zhengguangli avatar Jun 28 '25 03:06 zhengguangli

Use the command gemini --model="gemini-2.5-pro" --yolo --checkpointing , Forced to switch to gemini-2.5-flash

zhengguangli avatar Jun 28 '25 03:06 zhengguangli

What authentication method are you using? API Key? Google Account?

allenhutchison avatar Jun 28 '25 03:06 allenhutchison

Both methods result in the same result. Gemini-2.5-pro cannot be used, only gemini-2.5-flash can be used.

zhengguangli avatar Jun 28 '25 03:06 zhengguangli

│ │ │ About Gemini CLI │ │ │ │ CLI Version 0.1.7 │ │ Git Commit 55cc809 │ │ Model gemini-2.5-flash │ │ Sandbox no sandbox │ │ OS darwin │ │ Auth Method OAuth

zhengguangli avatar Jun 28 '25 03:06 zhengguangli

Yes, it seems that everyone is having the same issue, I will have to stick to AI-Studio

Misjre avatar Jun 28 '25 04:06 Misjre

Yes, it seems that everyone is having the same issue, I will have to stick to AI-Studio

Ya, I'm having the same issue. My guess is their TPUs are being slammed and they have to use flash.

tvhahn avatar Jun 28 '25 04:06 tvhahn

Seems to be a duplicate of #2325

claell avatar Jun 28 '25 12:06 claell

#2711 seems to be the main issue for this problem

oliviasculley avatar Jul 08 '25 17:07 oliviasculley

the same problem

CEOYulinZhu avatar Jul 23 '25 12:07 CEOYulinZhu

Cause it‘s totally a lie and trash.Just goto better alternates which u can find everywhere.

cryer avatar Aug 30 '25 06:08 cryer