-
Notifications
You must be signed in to change notification settings - Fork 19
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
Tf assistant cleanup #227
base: main
Are you sure you want to change the base?
Tf assistant cleanup #227
Conversation
shall we introduce application setting to opt-out of automatic deletion to make troubleshooting easier? |
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.
Please see comments below.
DELETE_ASSISTANT_ENABLED = var.delete_assistant_enabled | ||
|
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.
DELETE_ASSISTANT_ENABLED = var.delete_assistant_enabled | |
DELETE_ASSISTANT_ENABLED = var.delete_assistant_enabled |
"OpenAI-DeleteAssistant": { | ||
"inputs": { | ||
"authentication": { | ||
"audience": "https://cognitiveservices.azure.com", | ||
"type": "ManagedServiceIdentity" | ||
}, | ||
"method": "DELETE", | ||
"uri": "@concat(parameters('AZURE_OPENAI_ENDPOINT'), '/openai/assistants/', body('OpenAi-CreateAssisstant-Response')?['id'], '?api-version=2024-03-01-preview')" | ||
}, | ||
"runAfter": { | ||
"Get_Assistant_Messages": [ | ||
"Succeeded" | ||
] | ||
}, | ||
"runtimeConfiguration": { | ||
"contentTransfer": { | ||
"transferMode": "Chunked" | ||
} | ||
}, | ||
"type": "Http" | ||
}, |
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.
I am missing the use of the parameter DELETE_ASSISTANT_ENABLED
in the workflow.
Proposed changes: