Skip to content

Flash profile still initializes Gemini clients when a non-Google default model is configured #179

Closed

Description

@oooooooko

Description

When Artemis is configured to use a non-Google model through the OpenAI-compatible provider, the Flash profile still initializes Gemini clients in some internal components.

As a result, a task fails during startup because Google/Gemini credentials are missing, even though the configured provider has valid credentials.

I reproduced this with MiniMax-M3. The failure occurs before the first device action, so it does not appear to be specific to the requested app.

Environment

  • OS: macOS, Apple Silicon
  • Python: 3.12
  • Artemis version/commit: [please fill in]
  • Agent profile: Flash
  • Configured provider: openai
  • Configured model: MiniMax-M3
  • Google/Gemini credentials: intentionally not configured
  • Integration: locally embedded Artemis service

Configuration

Relevant model configuration:

{
  "default": {
    "provider": "openai",
    "model": "MiniMax-M3",
    "fallback": {
      "provider": "openai",
      "model": "MiniMax-M3"
    }
  },
  "nodes": {}
}

Environment variables:

OPENAI_API_KEY=<redacted>
OPENAI_BASE_URL=https://api.minimaxi.com/v1

All declared model nodes and their fallbacks were checked to ensure they resolved to the configured non-Google provider. The Flash step summarizer and history chunking retained their existing Gemini model settings.

Steps to reproduce

  1. Configure a non-Google default model and its fallback.
  2. Set the corresponding API key and OpenAI-compatible base URL.
  3. Leave Google/Gemini API keys unset.
  4. Keep the Flash step summarizer enabled.
  5. Start a task using the Flash profile.

Example task:

Open WeChat and view the top recent chat messages.

Actual behavior

The task fails during startup with a ChatGoogleGenerativeAI initialization error indicating missing Google/Gemini credentials.

The failed session contains zero execution steps.

Expected behavior

A configuration that resolves its model nodes to a non-Google provider should not silently require Google/Gemini credentials.

Internal summarization, compression, and validation components should respect the configured provider, or expose and validate any separate provider requirements before task execution.

Investigation

I found the following paths in the inspected source:

  1. Flash step summarizer

    • File: artemis/agents/flash/summarizer.py
    • VisualStepSummarizer directly calls get_google_llm() using the Flash step summarizer model setting, bypassing the configured summarizer node.
    • This is the startup failure observed in my session.
  2. History compression

    • File: artemis/memory/chunking.py
    • StepCapsuleLens directly calls get_google_llm() for its primary and fallback models.
    • This presents another implicit Google dependency when history compression is used.
  3. Operator initialization

    • File: artemis/agents/flash/runner.py
    • _init_llm() catches model initialization errors and falls back to a hardcoded Gemini model.
    • This can obscure the original configuration error and introduce an unexpected Google credential requirement.
  4. Optional validation nodes

    • File: artemis/config/llm.py
    • Unspecified validator_pixel_safety_net and planner_validation nodes can resolve to a lightweight Gemini default instead of the configured non-Google model.

Suggested fix

  • Route summarization and history compression through the configured model nodes, including their fallbacks.
  • Avoid silently switching to Gemini when initialization of a configured provider fails.
  • Make provider-specific defaults explicit and validate their credential requirements.
  • Preserve the existing lightweight Gemini behavior for Google configurations.

Local verification

After applying a local fix to the paths above:

  • FlashRunner initialization succeeded with the existing MiniMax-M3 configuration.
  • Operator, step summarizer, and history compression primary/fallback client initialization completed without constructing a Gemini client.
  • 113 relevant unit tests passed, including regression tests for non-Google routing and existing Google behavior.

This verification covered initialization and unit tests. It did not include a live model request or an end-to-end execution of the WeChat task.

Activity

  1. zaizaidaxia commented on Oct 20, 2026

    @zaizaidaxia

    This issue has not been resolved; it still exists.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions