provider_conflict_preventionTier 1 · 70% confidence

ai-agents-provider-conflict-pr-file-contains-imports-like-import-openai-from-open-6d0cd67f

agent: ai_agents

When does this happen?

IF File contains imports like `import openai`, `from openai`, `OpenAI(`, `gpt-4`, or filename matches `*-openai.py`/`*-generic.py`

How others solved it

THEN Stop and ask the user whether they want to switch the file to Claude/Anthropic or proceed with a non-Claude implementation. Do not edit a non-Anthropic file with Anthropic SDK calls.

# Python: scan for markers
if any(marker in source for marker in ["import openai", "from openai", "langchain_openai"]):
    print("This file uses OpenAI; ask user before editing.")

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics