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:
Laisky.Cai
2025-03-16 02:01:44 +00:00
parent f3300f08e2
commit fa794e7bd5
4 changed files with 258 additions and 197 deletions

View File

@@ -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
// -------------------------------------

View File

@@ -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 {