(apiModeGroup, configOrSession)
| 356 | } |
| 357 | |
| 358 | export function isInApiModeGroup(apiModeGroup, configOrSession) { |
| 359 | let foundGroup |
| 360 | if (configOrSession.apiMode) foundGroup = getApiModeGroup(configOrSession.apiMode) |
| 361 | else foundGroup = getModelNameGroup(configOrSession.modelName) |
| 362 | |
| 363 | if (!foundGroup) return false |
| 364 | const [, { value: groupValue }] = foundGroup |
| 365 | return groupValue === apiModeGroup |
| 366 | } |
no test coverage detected