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
commit c9368925a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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",