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>
Read first to correctly work with the provided examples
Open Router
- Sign up for an Openrouter Account - https://accounts.openrouter.ai/sign-up
- Create an API key - https://openrouter.ai/keys
- Add API key to environment -
export OPENROUTER_API_KEY=your key here - 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
- Sign up for an Openrouter Account - https://www.perplexity.ai/
- Create an API key - https://www.perplexity.ai/pplx-api
- Add API key to environment -
export PERPLEXITY_API_KEY=your key here - 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]