mirror of
https://github.com/kennethreitz/instructor.git
synced 2026-06-05 22:50:18 +00:00
bf22a106bc
Co-authored-by: Jason Liu <jason@jxnl.co>
14 lines
847 B
Markdown
14 lines
847 B
Markdown
# Read first to correctly work with the provided examples
|
|
|
|
|
|
## Open Router
|
|
1. Sign up for an Openrouter Account - https://accounts.openrouter.ai/sign-up
|
|
2. Create an API key - https://openrouter.ai/keys
|
|
3. Add API key to environment - `export OPENROUTER_API_KEY=your key here`
|
|
4. Add Openrouter API endpoint to environment - `export OPENROUTER_BASE_URL=https://openrouter.ai/api/v1` [See https://openrouter.ai/docs#format for potential updates]
|
|
|
|
## Perplexity
|
|
1. Sign up for an Openrouter Account - https://www.perplexity.ai/
|
|
2. Create an API key - https://www.perplexity.ai/pplx-api
|
|
3. Add API key to environment - `export PERPLEXITY_API_KEY=your key here`
|
|
4. Add Openrouter API endpoint to environment - `export PERPLEXITY_BASE_URL=https://api.perplexity.ai` [See https://docs.perplexity.ai/reference/post_chat_completions for potential updates] |