mirror of
https://github.com/stulzq/azure-openai-proxy.git
synced 2025-12-19 07:14:21 +01:00
feat: support multi model
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user