(model string)
| 47 | } |
| 48 | |
| 49 | func GetModelSupportEndpointTypes(model string) []constant.EndpointType { |
| 50 | if model == "" { |
| 51 | return make([]constant.EndpointType, 0) |
| 52 | } |
| 53 | modelSupportEndpointsLock.RLock() |
| 54 | defer modelSupportEndpointsLock.RUnlock() |
| 55 | if endpoints, ok := modelSupportEndpointTypes[model]; ok { |
| 56 | return endpoints |
| 57 | } |
| 58 | return make([]constant.EndpointType, 0) |
| 59 | } |
| 60 | |
| 61 | func updatePricing() { |
| 62 | //modelRatios := common.GetModelRatios() |