Skip to content

Commit

Permalink
feat: support minimax's 6.5 models (close #1395)
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Apr 29, 2024
1 parent 71f4403 commit 2720e1a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions relay/adaptor/minimax/constants.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
package minimax

// https://www.minimaxi.com/document/guides/chat-model/V2?id=65e0736ab2845de20908e2dd

var ModelList = []string{
"abab5.5s-chat",
"abab5.5-chat",
"abab6.5-chat",
"abab6.5s-chat",
"abab6-chat",
"abab5.5-chat",
"abab5.5s-chat",
}
2 changes: 2 additions & 0 deletions relay/billing/ratio/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ var ModelRatio = map[string]float64{
"Baichuan2-Turbo-192k": 0.016 * RMB,
"Baichuan2-53B": 0.02 * RMB,
// https://api.minimax.chat/document/price
"abab6.5-chat": 0.03 * RMB,
"abab6.5s-chat": 0.01 * RMB,
"abab6-chat": 0.1 * RMB,
"abab5.5-chat": 0.015 * RMB,
"abab5.5s-chat": 0.005 * RMB,
Expand Down

0 comments on commit 2720e1a

Please sign in to comment.