(value: string | undefined)
| 21 | } |
| 22 | |
| 23 | export function modelAuthor(value: string | undefined) { |
| 24 | const model = normalizeInferenceModel(value).toLowerCase() |
| 25 | if (EXCLUDED_MODELS.has(model)) return undefined |
| 26 | |
| 27 | return MODEL_AUTHOR_RULES.find((item) => model.includes(item.match))?.author ?? "unknown" |
| 28 | } |
| 29 | |
| 30 | export function statModel(model: string | undefined, providerModel: string | undefined) { |
| 31 | const normalized = normalizeInferenceModel(model) |
no test coverage detected