(model: string)
| 149 | } |
| 150 | |
| 151 | function getProviderFromStore(model: string): string | null { |
| 152 | const { providers } = useProvidersStore.getState() |
| 153 | const normalized = model.toLowerCase() |
| 154 | for (const [key, state] of Object.entries(providers)) { |
| 155 | if (state.models.some((m: string) => m.toLowerCase() === normalized)) { |
| 156 | return key |
| 157 | } |
| 158 | } |
| 159 | return null |
| 160 | } |
| 161 | |
| 162 | function buildModelVisibilityCondition(model: string, shouldShow: boolean) { |
| 163 | if (!model) { |
no outgoing calls
no test coverage detected