Azure-Samples / apim-genai-gateway-toolkit

A repo to accelerate development and testing of GenAI Gateways built with Azure API Management. Includes various capabilities as examples/starters.
MIT License
39 stars 14 forks source link

Return 404 for deployments not configured #49

Closed stuartleeks closed 3 months ago

stuartleeks commented 3 months ago

Purpose

Change the simulator (and batch-processing-alt1) behavoiur to return a 404 when called for model deployments that have not been configured. This makes errors more obvious, saving time

Does this introduce a breaking change?

[X] Yes
[ ] No

Pull Request Type

What kind of change does this Pull Request introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[X] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

Deploy and call an API specifying a model deployment name that hasn't been configured.

What to Check

Verify that you get a 404 response

Other Information