Skip to content

Commit

Permalink
Merge pull request #24 from moe-mizrak/dev
Browse files Browse the repository at this point in the history
OPENROUTER_API_TIMEOUT is added to readme
  • Loading branch information
moe-mizrak authored Nov 12, 2024
2 parents 55845d9 + f82ce17 commit d8bd272
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ This is the contents of the **published config file**:
return [
'api_endpoint' => env('OPENROUTER_API_ENDPOINT', 'https://openrouter.ai/api/v1/'),
'api_key' => env('OPENROUTER_API_KEY'),
'api_timeout' => env('OPENROUTER_API_TIMEOUT', 20)
];
```

Expand All @@ -64,10 +65,12 @@ After publishing the package configuration file, you'll need to add the followin
```env
OPENROUTER_API_ENDPOINT=https://openrouter.ai/api/v1/
OPENROUTER_API_KEY=your_api_key
OPENROUTER_API_TIMEOUT=request_timeout
```

- OPENROUTER_API_ENDPOINT: The endpoint URL for the **OpenRouter API** (default: https://openrouter.ai/api/v1/).
- OPENROUTER_API_KEY: Your **API key** for accessing the OpenRouter API. You can obtain this key from the [OpenRouter dashboard](https://openrouter.ai/keys).
- OPENROUTER_API_TIMEOUT: Request timeout in seconds. Increase value to 120 - 180 if you use long-thinking models like openai/o1 (default: 20)

## 🎨 Usage
This package provides two ways to interact with the OpenRouter API:
Expand Down

0 comments on commit d8bd272

Please sign in to comment.