From a498b6f525b094fba3019fda32e17e953f84f172 Mon Sep 17 00:00:00 2001 From: 0xWheatyz Date: Sun, 22 Feb 2026 12:27:06 -0500 Subject: [PATCH] docs: update documentation for OpenRouter migration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update all user-facing documentation to reflect the migration from Anthropic API to OpenRouter. Changes: - Update README.md to reference OpenRouter instead of Anthropic in: - Features section - Architecture diagram comments - Configuration instructions - API key acquisition links - Update main.py docstring to use OPENROUTER_API_KEY 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- README.md | 10 +++++----- main.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a6d3171..1712173 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ SPARC automatically collects, parses, and analyzes patents from companies to pro - **Patent Retrieval**: Automated collection via SerpAPI's Google Patents engine - **Intelligent Parsing**: Extracts key sections (abstract, claims, summary) from patent PDFs - **Content Minimization**: Removes verbose descriptions to reduce LLM token usage -- **AI Analysis**: Uses Claude 3.5 Sonnet to analyze innovation quality and market potential +- **AI Analysis**: Uses Claude 3.5 Sonnet via OpenRouter to analyze innovation quality and market potential - **Portfolio Analysis**: Evaluates multiple patents holistically for comprehensive insights - **Robust Testing**: 26 tests covering all major functionality @@ -22,7 +22,7 @@ SPARC automatically collects, parses, and analyzes patents from companies to pro ``` SPARC/ ├── serp_api.py # Patent retrieval and PDF parsing -├── llm.py # Claude AI integration for analysis +├── llm.py # Claude AI integration via OpenRouter ├── analyzer.py # High-level orchestration ├── types.py # Data models └── config.py # Environment configuration @@ -54,13 +54,13 @@ Create a `.env` file in the project root: # SerpAPI key for patent search API_KEY=your_serpapi_key_here -# Anthropic API key for Claude AI analysis -ANTHROPIC_API_KEY=your_anthropic_key_here +# OpenRouter API key for Claude AI analysis +OPENROUTER_API_KEY=your_openrouter_key_here ``` Get your API keys: - SerpAPI: https://serpapi.com/ -- Anthropic: https://console.anthropic.com/ +- OpenRouter: https://openrouter.ai/ ## Usage diff --git a/main.py b/main.py index 82e87fc..326e196 100644 --- a/main.py +++ b/main.py @@ -5,7 +5,7 @@ Example usage of the company performance analyzer. Before running: 1. Create a .env file with: API_KEY=your_serpapi_key - ANTHROPIC_API_KEY=your_anthropic_key + OPENROUTER_API_KEY=your_openrouter_key 2. Run: python main.py """