in src/dotnet/AzureAI.Proxy/ReverseProxy/ProxyConfiguration.cs [22:44]
public IReadOnlyList<RouteConfig> GetRoutes()
{
List<RouteConfig> routes = new();
foreach (var route in _proxyConfig.Routes)
{
RouteConfig routeConfig = new()
{
RouteId = route.Name,
ClusterId = route.Name,
Match = new RouteMatch()
{
Path = $"openai/deployments/{route.Name}/" + "{**catch-all}"
}
};
routes.Add(routeConfig);
}
return routes.AsReadOnly();
}