Skip to content

Commit c5d0399

Browse files
committed
Merge remote-tracking branch 'template/main'
2 parents 8b217f4 + d151273 commit c5d0399

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ You will have to add your API key and LLM model name into the Github repo settin
6868

6969
You must ensure the same namings as in your `.env` file. So, make sure to update the `.github/{dev and main}.yml` files with the correct parameter names.
7070

71+
For more information, check the section below [Deploy to Lambda Feedback](#deploy-to-lambda-feedback).
72+
7173
#### 5. Update the README
7274

7375
In the `README.md` file, change the title and description so it fits the purpose of your chat function.
@@ -188,6 +190,8 @@ During development, we recommend using the **`dev`** branch. This branch will de
188190
189191
After you are pleased with the performance of your Chatbot and have configured the repository, a [GitHub Actions workflow](.github/workflows/main.yml) will automatically build and deploy the chat function to Lambda Feedback as soon as changes are pushed to the main branch of the repository. This deployment will upload the function onto `staging.lambdafeedback.com`, and will also initiate an `approval` stage for prod environment. Once you reach this stage, please contact an admin from Lambda Feedback to review the code and approve it such that the code can be accessible onto the main [Lambda Feedback platform](https://www.lambdafeedback.com/).
190192

193+
> [!NOTE] Once the deployment in the **`dev`** or **`main`** branch has been successful, share your necessary environment variables (e.g. API key and LLM model) with one of the Lambda Feedback team member.
194+
191195
## Troubleshooting
192196

193197
### Containerized Function Fails to Start

index.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import json
22

3-
43
try:
54
from .src.module import chat_module
65
from .src.agents.utils.types import JsonType
@@ -35,8 +34,8 @@ def handler(event: JsonType, context):
3534
"body": "Missing 'params' key in event. Please confirm the key in the json body. Make sure it contains the necessary conversation_id."
3635
}
3736

38-
message = event.get("message", None)
39-
params = event.get("params", None)
37+
message = event.get("message")
38+
params = event.get("params")
4039

4140
try:
4241
chatbot_response = chat_module(message, params)

0 commit comments

Comments
 (0)