Extract InternalEventMiddleware into its own file
Problem to solve
In chore: refactors middlewares into a module (!2168 - merged), we started refactoring middleware into the middleware module, and splitting the test file. However, most of them are still in https://gitlab.com/gitlab-org/modelops/applied-ml/code-suggestions/ai-assist/blob/main/ai_gateway/api/middleware/base.py, and need to be extracted.
Implementation
The following class needs to be moved to their own file:
- InternalEventMiddleware to
ai_gateway/api/middleware/internal_event, - Tests to be moved from
test/api/middleware/test_base.pytotest/api/middleware/test_internal_event.py
Support contact: @eduardobonet
Edited by Eduardo Bonet