Files
instructor/examples/open_source_examples/README.md
T
Brandon Phillips bf22a106bc Opensource examples (#238)
Co-authored-by: Jason Liu <jason@jxnl.co>
2023-11-29 16:50:50 -05:00

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]