From b646c3e9d9590467b40c2fb9a49e3e5d1d746021 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 1 May 2025 01:34:06 +0000 Subject: [PATCH] Remove OpenAI API key references, use only OpenRouter API key Co-Authored-By: eric@sideguide.dev --- examples/qwen3-web-crawler/.env.example | 5 +---- examples/qwen3-web-crawler/README.md | 3 +-- examples/qwen3-web-crawler/qwen3_web_crawler.py | 3 +-- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/examples/qwen3-web-crawler/.env.example b/examples/qwen3-web-crawler/.env.example index 9bac29b2..a0de8767 100644 --- a/examples/qwen3-web-crawler/.env.example +++ b/examples/qwen3-web-crawler/.env.example @@ -1,8 +1,5 @@ # Firecrawl API key FIRECRAWL_API_KEY=your_firecrawl_api_key_here -# OpenAI API key (if using OpenAI for OpenRouter) -OPENAI_API_KEY=your_openai_api_key_here - -# OpenRouter API key (alternative to OpenAI API key) +# OpenRouter API key OPENROUTER_API_KEY=your_openrouter_api_key_here diff --git a/examples/qwen3-web-crawler/README.md b/examples/qwen3-web-crawler/README.md index d918908f..1490f3ac 100644 --- a/examples/qwen3-web-crawler/README.md +++ b/examples/qwen3-web-crawler/README.md @@ -13,7 +13,7 @@ This example demonstrates how to use the Firecrawl API with the Qwen3 30B A3B mo - Python 3.7+ - Firecrawl API key -- OpenRouter API key (or OpenAI API key configured for OpenRouter) +- OpenRouter API key ## Setup @@ -25,7 +25,6 @@ This example demonstrates how to use the Firecrawl API with the Qwen3 30B A3B mo 3. Create a `.env` file based on the `.env.example` template and add your API keys: ``` FIRECRAWL_API_KEY=your_firecrawl_api_key_here - OPENAI_API_KEY=your_openai_api_key_here OPENROUTER_API_KEY=your_openrouter_api_key_here ``` diff --git a/examples/qwen3-web-crawler/qwen3_web_crawler.py b/examples/qwen3-web-crawler/qwen3_web_crawler.py index 847741ca..dcc36161 100644 --- a/examples/qwen3-web-crawler/qwen3_web_crawler.py +++ b/examples/qwen3-web-crawler/qwen3_web_crawler.py @@ -16,12 +16,11 @@ class Colors: load_dotenv() firecrawl_api_key = os.getenv("FIRECRAWL_API_KEY") -openai_api_key = os.getenv("OPENAI_API_KEY") openrouter_api_key = os.getenv("OPENROUTER_API_KEY") app = FirecrawlApp(api_key=firecrawl_api_key) client = OpenAI( - api_key=openai_api_key or openrouter_api_key, + api_key=openrouter_api_key, base_url="https://openrouter.ai/api/v1" )