Skip to content

Conversation

dferguson992
Copy link

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@dferguson992 dferguson992 changed the title Updated for AIM405 Updated Sep 16, 2025
@dferguson992 dferguson992 reopened this Sep 16, 2025
@dferguson992 dferguson992 changed the title Updated Updated notebooks to be more descriptive and include non-pipelined examples. Sep 25, 2025
"guardrail_name = \"ExampleMedicalGuardrail\"\n",
"try:\n",
" # Try to get the guardrail\n",
" response = guardrail_client.list_guardrails()\n",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Need to handle if list is empty, otherwise guardrail_id won't be defined and will throw an error

Copy link
Author

Choose a reason for hiding this comment

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

This is in a try block, and the response.get call defaults to an empty list. If guardrail_id is empty it will create the guardrail in the exception, provided the error message is ResourceNotFoundException

@bobbywlindsey
Copy link
Collaborator

model_safe_name definition can be updated to model_id.replace('/', '-').replace('_', '-') so that the correct endpoint name that the pipeline created will be deleted (line 1653). For some reason, GitHub wouldn't let me do a singe-line comment on that one 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants