Remove OpenAI API key references, use only OpenRouter API key

Co-Authored-By: eric@sideguide.dev <eric@sideguide.dev>
This commit is contained in:
Devin AI 2025-05-01 01:34:06 +00:00
parent 018c6a616e
commit b646c3e9d9
3 changed files with 3 additions and 8 deletions

View File

@ -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

View File

@ -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
```

View File

@ -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"
)