mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-10 02:23:43 +08:00
feat: update model lists and adjust quota calculation logic
⚠️breaking change warning: for image models, the model ratio represents the quota cost per image
This commit is contained in:
@@ -33,9 +33,16 @@ var ModelList = []string{
|
||||
// -------------------------------------
|
||||
// language model
|
||||
// -------------------------------------
|
||||
"anthropic/claude-3.5-haiku",
|
||||
"anthropic/claude-3.5-sonnet",
|
||||
"anthropic/claude-3.7-sonnet",
|
||||
"deepseek-ai/deepseek-r1",
|
||||
"ibm-granite/granite-20b-code-instruct-8k",
|
||||
"ibm-granite/granite-3.0-2b-instruct",
|
||||
"ibm-granite/granite-3.0-8b-instruct",
|
||||
"ibm-granite/granite-3.1-2b-instruct",
|
||||
"ibm-granite/granite-3.1-8b-instruct",
|
||||
"ibm-granite/granite-3.2-8b-instruct",
|
||||
"ibm-granite/granite-8b-code-instruct-128k",
|
||||
"meta/llama-2-13b",
|
||||
"meta/llama-2-13b-chat",
|
||||
@@ -50,7 +57,6 @@ var ModelList = []string{
|
||||
"meta/meta-llama-3-8b-instruct",
|
||||
"mistralai/mistral-7b-instruct-v0.2",
|
||||
"mistralai/mistral-7b-v0.1",
|
||||
"mistralai/mixtral-8x7b-instruct-v0.1",
|
||||
// -------------------------------------
|
||||
// video model
|
||||
// -------------------------------------
|
||||
|
||||
@@ -15,7 +15,11 @@ import (
|
||||
)
|
||||
|
||||
var ModelList = []string{
|
||||
"imagen-3.0-generate-001",
|
||||
// create
|
||||
"imagen-3.0-generate-001", "imagen-3.0-generate-002",
|
||||
"imagen-3.0-fast-generate-001",
|
||||
// edit
|
||||
// "imagen-3.0-capability-001", // not supported yet
|
||||
}
|
||||
|
||||
type Adaptor struct {
|
||||
|
||||
Reference in New Issue
Block a user