🎨 调整供应商目录结构,合并文本输出函数

This commit is contained in:
Martial BE
2023-11-29 16:07:09 +08:00
parent 902c2faa2c
commit 544f20cc73
51 changed files with 1062 additions and 1146 deletions

View File

@@ -2,6 +2,7 @@ package controller
import (
"fmt"
"one-api/types"
"github.com/gin-gonic/gin"
)
@@ -541,7 +542,7 @@ func RetrieveModel(c *gin.Context) {
if model, ok := openAIModelsMap[modelId]; ok {
c.JSON(200, model)
} else {
openAIError := OpenAIError{
openAIError := types.OpenAIError{
Message: fmt.Sprintf("The model '%s' does not exist", modelId),
Type: "invalid_request_error",
Param: "model",