feat: support multi model

This commit is contained in:
Zhiqiang Li
2023-03-28 14:34:21 +08:00
parent 7b9dff64c7
commit 1968022907
16 changed files with 162 additions and 112 deletions

View File

@@ -2,9 +2,11 @@ package main
import (
"github.com/gin-gonic/gin"
"github.com/stulzq/azure-openai-proxy/apis"
"github.com/stulzq/azure-openai-proxy/azure"
)
// registerRoute registers all routes
func registerRoute(r *gin.Engine) {
r.POST("/v1/chat/completions", apis.ChatCompletions)
// https://platform.openai.com/docs/api-reference
r.Any("*path", azure.Proxy)
}