| 1 | import { ILLM } from "core"; |
| 2 | |
| 3 | export const FAST_APPLY_MODELS: Array<ILLM["model"]> = ["Fast-Apply"]; |
| 4 | |
| 5 | /** |
| 6 | * Checks against model names, which can include proxy prefixes |
| 7 | * such as `continuedev/hub` |
| 8 | * @param llm |
| 9 | * @returns |
| 10 | */ |
| 11 | export function isFastApplyModel(llm: ILLM): boolean { |
| 12 | return FAST_APPLY_MODELS?.some((fastApplyModel) => |
| 13 | llm.model.toLowerCase().includes(fastApplyModel.toLowerCase()), |
| 14 | ); |
| 15 | } |