proxy: add /v1/images/generations (#443)

Add support for the /v1/images/generations endpoint

Updates #433
Closes #191
This commit is contained in:
Benson Wong
2025-12-30 21:04:58 -08:00
committed by GitHub
parent 22e098ac8b
commit 37d74efc2d
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -299,6 +299,7 @@ func (pm *ProxyManager) setupGinEngine() {
// Support audio/speech endpoint
pm.ginEngine.POST("/v1/audio/speech", pm.apiKeyAuth(), pm.proxyInferenceHandler)
pm.ginEngine.POST("/v1/audio/transcriptions", pm.apiKeyAuth(), pm.proxyOAIPostFormHandler)
pm.ginEngine.POST("/v1/images/generations", pm.apiKeyAuth(), pm.proxyInferenceHandler)
pm.ginEngine.GET("/v1/models", pm.apiKeyAuth(), pm.listModelsHandler)