refactor(error): replace dto.OpenAIError with types.OpenAIError for consistency

This commit is contained in:
CaIon
2025-12-13 16:43:57 +08:00
parent c51936e068
commit 21fca238bf
5 changed files with 63 additions and 28 deletions

View File

@@ -4,6 +4,7 @@ import (
"time"
"github.com/QuantumNous/new-api/dto"
"github.com/QuantumNous/new-api/types"
)
// type ZhipuMessage struct {
@@ -37,7 +38,7 @@ type ZhipuV4Response struct {
Model string `json:"model"`
TextResponseChoices []dto.OpenAITextResponseChoice `json:"choices"`
Usage dto.Usage `json:"usage"`
Error dto.OpenAIError `json:"error"`
Error types.OpenAIError `json:"error"`
}
//