Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update api schema and bug fix #415

Merged
merged 3 commits into from
Oct 24, 2024
Merged

fix: update api schema and bug fix #415

merged 3 commits into from
Oct 24, 2024

Conversation

NingLu
Copy link
Collaborator

@NingLu NingLu commented Oct 24, 2024

Fixes #

🤖 AI-Generated PR Description (Powered by Amazon Bedrock)

Description

This pull request modifies the lambda_invoke_utils.py and main.py files to improve the error handling and logging mechanisms for AWS Lambda function invocations. The changes include:

  1. Enhancing the invoke_lambda function in lambda_invoke_utils.py to capture and log any exceptions raised during the Lambda invocation process.
  2. Updating the lambda_handler function in main.py to handle and log exceptions raised by the business logic.

These modifications will provide better visibility into potential issues and improve the overall robustness of the application.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

File Stats Summary

File number involved in this PR: 2, unfold to see the details:

The file changes summary is as follows:

Files
Changes
Change Summary
source/lambda/online/lambda_main/main.py 5 added, 3 removed The code changes introduce a new dictionary para_chatbot_config that stores chatbot configuration parameters like group_name, chatbot_id, and use_history from the event body, instead of directly accessing them from the event body.
source/lambda/online/common_logic/common_utils/lambda_invoke_utils.py 3 added, 2 removed The code changes include adding a new key-value pair to the __FUNC_NAME_MAP dictionary for "llm_direct_results_generation": "LLM Response", and modifying the send_trace function to handle cases where the function name is not present in the __FUNC_NAME_MAP dictionary.

@530051970 530051970 merged commit 1dd1d03 into dev Oct 24, 2024
6 checks passed
@NingLu NingLu deleted the monitor-trace branch October 25, 2024 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants