-
Notifications
You must be signed in to change notification settings - Fork 44
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
base: main
Are you sure you want to change the base?
Conversation
inference_containers = AquaModelApp.list_valid_inference_containers() | ||
if ( | ||
inference_container is not None | ||
and inference_container not in inference_containers | ||
and inference_container |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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." |
There was a problem hiding this comment.
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()}".
No description provided.