@@ -1347,9 +1347,7 @@ func containsPath(arr []key.PathConfig, path, method string) bool {
13471347var openaiModels = map [string ]struct {}{}
13481348var anthropicModels = map [string ]struct {}{}
13491349var azureOpenAIModels = map [string ]struct {}{}
1350- var vllmModels = map [string ]struct {}{}
13511350var deepinfraModels = map [string ]struct {}{}
1352- var bedrockAnthropicModels = map [string ]struct {}{}
13531351
13541352func init () {
13551353 // openai models
@@ -1360,9 +1358,6 @@ func init() {
13601358 initByCostMap (azureOpenAIModels , azure .AzureOpenAiPerThousandTokenCost )
13611359 // deepinfra models
13621360 initByCostMap (deepinfraModels , deepinfra .DeepinfraPerMillionTokenCost )
1363- // TODO: check vllm and bedrock anthropic models
1364- // cost map from settings
1365- // maybe disable this models or...
13661361}
13671362
13681363func initByCostMap (target map [string ]struct {}, source map [string ]map [string ]float64 ) {
@@ -1394,14 +1389,8 @@ func modelsMapByPath(path string) map[string]struct{} {
13941389 if strings .HasPrefix (path , "/api/providers/azure/openai" ) {
13951390 return azureOpenAIModels
13961391 }
1397- if strings .HasPrefix (path , "/api/providers/vllm" ) {
1398- return vllmModels
1399- }
14001392 if strings .HasPrefix (path , "/api/providers/deepinfra" ) {
14011393 return deepinfraModels
14021394 }
1403- if strings .HasPrefix (path , "/api/providers/bedrock/anthropic" ) {
1404- return bedrockAnthropicModels
1405- }
14061395 return nil
14071396}
0 commit comments