( customModels: string, modelName: string, providerName: string, )
| 194 | } |
| 195 | |
| 196 | export function isModelAvailableInServer( |
| 197 | customModels: string, |
| 198 | modelName: string, |
| 199 | providerName: string, |
| 200 | ) { |
| 201 | const fullName = `${modelName}@${providerName}`; |
| 202 | const modelTable = collectModelTable(DEFAULT_MODELS, customModels); |
| 203 | return modelTable[fullName]?.available === false; |
| 204 | } |
| 205 | |
| 206 | /** |
| 207 | * Check if the model name is a GPT-4 related model |
nothing calls this directly
no test coverage detected