From 3e8c923641587df47f7a75d217228f848852d179 Mon Sep 17 00:00:00 2001 From: Jerry Liu <jerryjliu98@gmail.com> Date: Fri, 17 Nov 2023 19:39:23 -0800 Subject: [PATCH] cr --- .../templates/types/simple/fastapi/README-template.md | 7 +++++++ .../templates/types/streaming/fastapi/README-template.md | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/packages/create-llama/templates/types/simple/fastapi/README-template.md b/packages/create-llama/templates/types/simple/fastapi/README-template.md index f0b92bdfc..0e7fb5388 100644 --- a/packages/create-llama/templates/types/simple/fastapi/README-template.md +++ b/packages/create-llama/templates/types/simple/fastapi/README-template.md @@ -9,6 +9,13 @@ poetry install poetry shell ``` +By default, we use the OpenAI LLM (though you can customize, see app/api/routers/chat.py). As a result you need to specify an `OPENAI_API_KEY` in an .env file in this directory. + +Example `backend/.env` file: +``` +OPENAI_API_KEY=<openai_api_key> +``` + Second, run the development server: ``` diff --git a/packages/create-llama/templates/types/streaming/fastapi/README-template.md b/packages/create-llama/templates/types/streaming/fastapi/README-template.md index f0b92bdfc..0e7fb5388 100644 --- a/packages/create-llama/templates/types/streaming/fastapi/README-template.md +++ b/packages/create-llama/templates/types/streaming/fastapi/README-template.md @@ -9,6 +9,13 @@ poetry install poetry shell ``` +By default, we use the OpenAI LLM (though you can customize, see app/api/routers/chat.py). As a result you need to specify an `OPENAI_API_KEY` in an .env file in this directory. + +Example `backend/.env` file: +``` +OPENAI_API_KEY=<openai_api_key> +``` + Second, run the development server: ``` -- GitLab