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

Adding inference container URI for edit model handler #1030

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

kumar-shivam-ranjan
Copy link
Member

No description provided.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Dec 19, 2024
Copy link

📌 Cov diff with main:

Coverage-60%

📌 Overall coverage:

Coverage-58.48%

Copy link

📌 Cov diff with main:

Coverage-30%

📌 Overall coverage:

Coverage-58.48%

inference_containers = AquaModelApp.list_valid_inference_containers()
if (
inference_container is not None
and inference_container not in inference_containers
and inference_container
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid hardcoding, would it be better to move AQUA_TEI_CONTAINER_FAMILY from InferenceContainerTypeFamily to a new enum CustomInferenceContainerTypeFamily(str, metaclass=ExtendedEnumMeta)? That way the final inference_containers list can be inference_containers.append(CustomInferenceContainerTypeFamily.values()).

replace=True,
)
if (
inference_container
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be replaced with inference_container in CustomInferenceContainerTypeFamily.values()

)
else:
raise AquaRuntimeError(
f"Failed to edit model:{id}. Inference container URI can be edited only with TEI container."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

f"Inference container URI can be edited only with container values: {CustomInferenceContainerTypeFamily.values()}".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants