feat: use siliconflow model

This commit is contained in:
liuyuanchuang
2025-12-11 19:39:35 +08:00
parent ea0f5d8765
commit 696919611c
3 changed files with 13 additions and 10 deletions

View File

@@ -5,6 +5,7 @@ import (
"net/http"
"os"
"path/filepath"
"strings"
"time"
"gitea.com/bitwsd/document_ai/config"
@@ -59,7 +60,7 @@ func GetSignatureURL(ctx *gin.Context) {
ctx.JSON(http.StatusOK, common.SuccessResponse(ctx, gin.H{"sign_url": "", "repeat": true, "path": task.FileURL}))
return
}
extend := filepath.Ext(req.FileName)
extend := strings.ToLower(filepath.Ext(req.FileName))
if extend == "" {
ctx.JSON(http.StatusOK, common.ErrorResponse(ctx, common.CodeParamError, "invalid file name"))
return