664de945f1
The langchain-anthropic wrapper fails auth with MiniMax because it sends an api_key that conflicts with ANTHROPIC_AUTH_TOKEN at the SDK level, causing the request to be sent with incorrect auth headers. Use raw Anthropic SDK directly with a simple MiniMaxLLM wrapper class instead. Root cause: MiniMax requires the API key ONLY via ANTHROPIC_AUTH_TOKEN (system env), not via api_key parameter or OPENAI_API_KEY. Setting os.environ["NO_PROXY"]="*" is also needed to prevent httpx from using a proxy that interferes with the auth header. Note: E2E testing with streamlit run app.py still pending.