The invention relates to the technical field of front-end
application error repair, and provides an intelligent front-end error
repair method based on a
large model, which comprises the following steps of: calling a
JavaScript global error monitor to capture context information during abnormal operation and performing structured packaging; converting a structure field in the
context data packet into a corresponding error description text, inputting the corresponding error description text and an error pattern
label generated based on historical error case clustering into a large
language model for
fine tuning of a front-end error repair task, and generating a
JavaScript repair patch matched with the running exception; and verifying the repair patch in the sandbox environment, and deploying the repair patch in a hot update mode after the repair patch passes the
verification. According to the invention, the integrity of key data required by fault positioning is ensured, and the security of user data is also ensured; in the patch generation stage, clustering analysis is conducted on historical error cases, error pattern labels are generated, the labels serve as prompt prefixes to be injected in the large
language model fine adjustment process, and the repair accuracy under a specific error scene is effectively improved.