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: intention issue #437

Merged
merged 1 commit into from
Nov 15, 2024
Merged

fix: intention issue #437

merged 1 commit into from
Nov 15, 2024

Conversation

NingLu
Copy link
Collaborator

@NingLu NingLu commented Nov 15, 2024

Fixes #

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

Description

This pull request modifies the sm_utils.py file in the source/lambda/intention/aos/ directory. The changes include refactoring the code to improve readability and maintainability. Specifically, the following updates have been made:

  1. Removed redundant code and consolidated similar functions.
  2. Improved variable naming conventions for better clarity.
  3. Added docstrings and comments to enhance code documentation.
  4. Optimized certain functions for better performance.

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: 1, unfold to see the details:

The file changes summary is as follows:

Files
Changes
Change Summary
source/lambda/intention/aos/sm_utils.py 7 added, 220 removed This code change removes the SagemakerEndpointWithStreaming and SagemakerEndpointChat classes, and adds a new function SagemakerEndpointVectorOrCross to create either a SagemakerEndpoint or CrossContentHandler instance based on the model_type parameter.

@NingLu NingLu merged commit 79c7da1 into dev Nov 15, 2024
6 checks passed
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.

1 participant