chore: fix refactor caused typo
This commit is contained in:
parent
0b8ccb94eb
commit
961b4108e6
2
main.go
2
main.go
@ -28,7 +28,7 @@ func main() {
|
|||||||
gin.SetMode(gin.ReleaseMode)
|
gin.SetMode(gin.ReleaseMode)
|
||||||
}
|
}
|
||||||
if config.DebugEnabled {
|
if config.DebugEnabled {
|
||||||
logger.SysLog("running in debug relaymode")
|
logger.SysLog("running in debug mode")
|
||||||
}
|
}
|
||||||
var err error
|
var err error
|
||||||
// Initialize SQL Database
|
// Initialize SQL Database
|
||||||
|
@ -10,5 +10,5 @@ func GetRequestURL(meta *meta.Meta) (string, error) {
|
|||||||
if meta.Mode == relaymode.ChatCompletions {
|
if meta.Mode == relaymode.ChatCompletions {
|
||||||
return fmt.Sprintf("%s/v1/text/chatcompletion_v2", meta.BaseURL), nil
|
return fmt.Sprintf("%s/v1/text/chatcompletion_v2", meta.BaseURL), nil
|
||||||
}
|
}
|
||||||
return "", fmt.Errorf("unsupported relay relaymode %d for minimax", meta.Mode)
|
return "", fmt.Errorf("unsupported relay mode %d for minimax", meta.Mode)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user