feat: support minimax

This commit is contained in:
CaIon
2024-05-16 19:03:42 +08:00
parent 5e07ff85eb
commit e0df8bbbda
6 changed files with 62 additions and 12 deletions

View File

@@ -0,0 +1,10 @@
package minimax
import (
"fmt"
relaycommon "one-api/relay/common"
)
func GetRequestURL(info *relaycommon.RelayInfo) (string, error) {
return fmt.Sprintf("%s/v1/text/chatcompletion_v2", info.BaseUrl), nil
}