mirror of
https://github.com/stulzq/azure-openai-proxy.git
synced 2025-12-19 15:24:24 +01:00
feat: ability to mimic /v1/models/ api (#68)
* add: ability to mimic `/v1/models/` api * fix: missing json dependency * fix: accidentally remove dependency * fix: linter error caught by gh workflow
This commit is contained in:
@@ -17,6 +17,7 @@ func registerRoute(r *gin.Engine) {
|
||||
})
|
||||
apiBase := viper.GetString("api_base")
|
||||
stripPrefixConverter := azure.NewStripPrefixConverter(apiBase)
|
||||
r.GET(stripPrefixConverter.Prefix+"/models", azure.ModelProxy)
|
||||
templateConverter := azure.NewTemplateConverter("/openai/deployments/{{.DeploymentName}}/embeddings")
|
||||
apiBasedRouter := r.Group(apiBase)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user