(model: string, shouldShow: boolean)
| 160 | } |
| 161 | |
| 162 | function buildModelVisibilityCondition(model: string, shouldShow: boolean) { |
| 163 | if (!model) { |
| 164 | return { field: 'model', value: '__no_model_selected__' } |
| 165 | } |
| 166 | |
| 167 | return shouldShow ? { field: 'model', value: model } : { field: 'model', value: model, not: true } |
| 168 | } |
| 169 | |
| 170 | function shouldRequireApiKeyForModel(model: string): boolean { |
| 171 | const normalizedModel = model.trim().toLowerCase() |
no outgoing calls
no test coverage detected