You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug: Anthropic API key check runs regardless of selected LLM provider
Description
Users are encountering an error about the Anthropic API key not being set, even when they've selected a different LLM provider (like OpenAI, Ollama, etc.). This happens because there's a hardcoded check for the Anthropic API key in the tool agent implementation that runs regardless of which provider is configured.
Current Behavior
Even when a non-Anthropic provider is selected, the CLI throws an error if the Anthropic API key is not set
The error occurs because of a hardcoded check in packages/agent/src/core/toolAgent/toolAgentCore.ts (lines 33-34):
Remove the hardcoded Anthropic API key check from toolAgentCore.ts
Ensure API key checks are provider-specific and only run for the selected provider
Improve error messages to include links to provider-specific documentation pages:
mycoder.ai/docs/getting-started/anthropic
mycoder.ai/docs/getting-started/openai
mycoder.ai/docs/getting-started/ollama
etc.
Additional Notes
The provider-specific documentation pages don't exist yet, but should be created as part of this fix
The CLI command handler in packages/cli/src/commands/$default.ts already has provider-specific API key checks, but the redundant check in the tool agent is causing this issue
The text was updated successfully, but these errors were encountered:
Bug: Anthropic API key check runs regardless of selected LLM provider
Description
Users are encountering an error about the Anthropic API key not being set, even when they've selected a different LLM provider (like OpenAI, Ollama, etc.). This happens because there's a hardcoded check for the Anthropic API key in the tool agent implementation that runs regardless of which provider is configured.
Current Behavior
packages/agent/src/core/toolAgent/toolAgentCore.ts
(lines 33-34):Expected Behavior
Proposed Solution
toolAgentCore.ts
mycoder.ai/docs/getting-started/anthropic
mycoder.ai/docs/getting-started/openai
mycoder.ai/docs/getting-started/ollama
Additional Notes
packages/cli/src/commands/$default.ts
already has provider-specific API key checks, but the redundant check in the tool agent is causing this issueThe text was updated successfully, but these errors were encountered: