From 508c3489f43fb8045e846560322b98acac89c909 Mon Sep 17 00:00:00 2001 From: Josh Payne Date: Wed, 25 Oct 2023 12:36:20 -0700 Subject: [PATCH] OpenRouter via LiteLLM --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f748a8c..35c917a 100644 --- a/README.md +++ b/README.md @@ -40,10 +40,10 @@ poetry install This will create a virtual environment and install all the necessary dependencies in that environment. -2. Set your [OpenAI API key](https://platform.openai.com/account/api-keys) and install the python requirements: +2. Set your [OpenRouter API key](https://openrouter.ai/docs#api-keys) (default) and/or your [OpenAI API key](https://platform.openai.com/account/api-keys) (to use the OpenAI API directly...in this case, set --model to `gpt-4-32k` or your desired model) and install the python requirements: +`export OPENROUTER_API_KEY=` `export OPENAI_API_KEY=` - `pip install -r requirements.txt` 3. Run the main script with the target language you want to migrate to: