feat: add supported_model_types field and filter in provider list (#1581)

This commit is contained in:
takatost
2023-11-21 15:06:47 +08:00
committed by GitHub
parent 0d9ce1bab0
commit c9368925a3
18 changed files with 78 additions and 10 deletions

View File

@@ -12,6 +12,9 @@
"quota_limit": 0
},
"model_flexibility": "fixed",
"supported_model_types": [
"text-generation"
],
"price_config": {
"claude-instant-1": {
"prompt": "1.63",

View File

@@ -4,6 +4,10 @@
],
"system_config": null,
"model_flexibility": "configurable",
"supported_model_types": [
"text-generation",
"embeddings"
],
"price_config":{
"gpt-4": {
"prompt": "0.03",

View File

@@ -4,6 +4,9 @@
],
"system_config": null,
"model_flexibility": "fixed",
"supported_model_types": [
"text-generation"
],
"price_config": {
"baichuan2-53b": {
"prompt": "0.01",

View File

@@ -3,5 +3,8 @@
"custom"
],
"system_config": null,
"model_flexibility": "fixed"
"model_flexibility": "fixed",
"supported_model_types": [
"text-generation"
]
}

View File

@@ -3,5 +3,8 @@
"custom"
],
"system_config": null,
"model_flexibility": "fixed"
"model_flexibility": "fixed",
"supported_model_types": [
"reranking"
]
}

View File

@@ -3,5 +3,9 @@
"custom"
],
"system_config": null,
"model_flexibility": "configurable"
"model_flexibility": "configurable",
"supported_model_types": [
"text-generation",
"embeddings"
]
}

View File

@@ -3,5 +3,9 @@
"custom"
],
"system_config": null,
"model_flexibility": "configurable"
"model_flexibility": "configurable",
"supported_model_types": [
"text-generation",
"embeddings"
]
}

View File

@@ -10,6 +10,10 @@
"quota_unit": "tokens"
},
"model_flexibility": "fixed",
"supported_model_types": [
"text-generation",
"embeddings"
],
"price_config": {
"abab5.5-chat": {
"prompt": "0.015",

View File

@@ -11,6 +11,12 @@
"quota_limit": 200
},
"model_flexibility": "fixed",
"supported_model_types": [
"text-generation",
"embeddings",
"speech2text",
"moderation"
],
"price_config": {
"gpt-4": {
"prompt": "0.03",

View File

@@ -3,5 +3,9 @@
"custom"
],
"system_config": null,
"model_flexibility": "configurable"
"model_flexibility": "configurable",
"supported_model_types": [
"text-generation",
"embeddings"
]
}

View File

@@ -3,5 +3,9 @@
"custom"
],
"system_config": null,
"model_flexibility": "configurable"
"model_flexibility": "configurable",
"supported_model_types": [
"text-generation",
"embeddings"
]
}

View File

@@ -10,6 +10,9 @@
"quota_unit": "tokens"
},
"model_flexibility": "fixed",
"supported_model_types": [
"text-generation"
],
"price_config": {
"spark": {
"prompt": "0.18",

View File

@@ -4,6 +4,9 @@
],
"system_config": null,
"model_flexibility": "fixed",
"supported_model_types": [
"text-generation"
],
"price_config": {
"qwen-turbo": {
"prompt": "0.012",

View File

@@ -4,6 +4,9 @@
],
"system_config": null,
"model_flexibility": "fixed",
"supported_model_types": [
"text-generation"
],
"price_config": {
"ernie-bot-4": {
"prompt": "0",

View File

@@ -3,5 +3,9 @@
"custom"
],
"system_config": null,
"model_flexibility": "configurable"
"model_flexibility": "configurable",
"supported_model_types": [
"text-generation",
"embeddings"
]
}

View File

@@ -10,6 +10,10 @@
"quota_unit": "tokens"
},
"model_flexibility": "fixed",
"supported_model_types": [
"text-generation",
"embeddings"
],
"price_config": {
"chatglm_turbo": {
"prompt": "0.005",