Repository navigation
Description
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/v1All 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
- Configure a non-Google default model and its fallback.
- Set the corresponding API key and OpenAI-compatible base URL.
- Leave Google/Gemini API keys unset.
- Keep the Flash step summarizer enabled.
- 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:
-
Flash step summarizer
- File:
artemis/agents/flash/summarizer.py VisualStepSummarizerdirectly callsget_google_llm()using the Flash step summarizer model setting, bypassing the configuredsummarizernode.- This is the startup failure observed in my session.
- File:
-
History compression
- File:
artemis/memory/chunking.py StepCapsuleLensdirectly callsget_google_llm()for its primary and fallback models.- This presents another implicit Google dependency when history compression is used.
- File:
-
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.
- File:
-
Optional validation nodes
- File:
artemis/config/llm.py - Unspecified
validator_pixel_safety_netandplanner_validationnodes can resolve to a lightweight Gemini default instead of the configured non-Google model.
- File:
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
zaizaidaxia commentedon Oct 20, 2026
This issue has not been resolved; it still exists.