LLM Frontend Code Generation in Practice: Testing Capability Boundaries and Engineering Considerations
This article evaluates a Chinese open-source large language model on a real frontend project covering login, product list, and information form pages. It examines functional fidelity, requirement understanding, runnable code, generation speed, and UI quality, compares the results with a leading international closed-source model, and discusses what open-source availability means for enterprise adoption and the broader AI ecosystem.
LLM Frontend Code Generation in Practice: Testing Capability Boundaries and Engineering Considerations
Large language models are increasingly competitive in code generation. A Chinese open-source model recently claimed benchmark results comparable to leading international closed-source models, attracting widespread attention. However, there is often a gap between benchmark scores and real engineering capability. This article uses a real frontend project requirement as a test sample to evaluate this type of model end to end. It examines three typical scenarios—a login page, a list page, and a form page—to objectively analyze its capability boundaries and discuss the deeper significance of open-source availability for the AI technology ecosystem.
1. Test Background and Method Design
1.1 Why Test with a Real Project
Benchmark scores for large models can be affected by “teaching to the test”: training data may contain samples similar to the test set, inflating scores. Real engineering requirements are different. They often include:
- Ambiguous descriptions: Product documents are not strict machine-readable specifications.
- Implicit conventions: For example, filters should update the list, and form validation should provide friendly feedback. These may not be written in the document but are expected by default.
- Cross-page consistency: Design language and state management need to remain consistent across multiple pages.
Therefore, an end-to-end test using a real project’s frontend requirements reflects a model’s practical engineering value better than benchmark scores alone.
1.2 Test Design
The test used a product document containing three parts:
- Login page: Including a carousel display, form submission, and other basic capabilities.
- Product list page: Including explicit filter conditions and interaction logic.
- Information form page: Including multiple fields, hierarchical validation rules, and detailed interaction descriptions.
No technology stack was specified, and the model chose independently. The final implementation was based on React. Evaluation dimensions included: functional fidelity, requirement understanding precision, code runnability, generation speed, and UI quality.
2. Test Process and Result Analysis
2.1 User Experience: Usable, but Stability Needs Improvement
First, a complaint: during testing, I repeatedly encountered a queue message saying “too many users are currently using the service” and had to retry several times to enter. This suggests that capacity planning still has room for optimization under high concurrency, and it also reflects strong community interest.
Once generation started, the overall process took more than half an hour, which was noticeably slow—possibly related to the compute quota of the free tier. However, there was a clear advantage: the deliverable was not scattered code snippets but a complete, directly accessible project. This is valuable for rapid validation because it removes local setup and dependency installation. Engineers can review the result directly in the browser.
2.2 Login Page: Acceptable Completeness
The login page had the clearest requirements in the document. The model accurately implemented all explicit requirements, including the carousel. The page structure was complete and the functionality was usable. It was at the level of “ready for production after minor adjustments.”
This shows that for highly templated standard pages, current large models already provide reliable productivity. Form layout, component composition, and basic interactions are mature capabilities.
2.3 List Page: Clear Degradation in Requirement Understanding
Problems began to appear on the list page. The document explicitly described filter conditions and linkage logic, but the generated result lacked the filter options entirely. This was a common issue across multiple list pages, not an isolated occurrence.
From an engineering perspective, this exposes a typical weakness: when requirements escalate from “single-page static structure” to “multi-state interaction logic”—the state chain of filter → filter → render → pagination—the model’s depth of parsing the requirements document is insufficient. It tends to generate the “most common form” of a list page rather than the specific form described in the document.
2.4 Form Page: Insufficient Restoration of Complex Logic
The form page was the “stress test” of this evaluation. The overall page could run, but many field definitions, validation rules, and interaction details were not implemented according to the document.
Complex forms place much higher demands on the model than ordinary pages. The model must simultaneously understand:
- Dependencies between fields (for example, the value of field A determines whether field B is displayed);
- Validation timing (trigger points for blur validation, submit validation, and asynchronous validation);
- Boundary conditions (handling of empty values, overlong input, and invalid formats).
These logic requirements are discrete descriptions in the document, and the model must actively build a complete “field state machine.” At present, this type of multi-constraint reasoning remains a weak point.
2.5 UI Style: Engineering Usability over Product Aesthetics
The overall visual presentation was average: better than a typical prototype, but still behind templates from mature design systems. The style was engineering-oriented and lacked design highlights. In one phrase: engineering usability > product polish.
2.6 Horizontal Comparison with a Leading International Model
The same set of requirements had previously been implemented with a leading international closed-source model. A brief comparison:
| Dimension | Chinese open-source model | International closed-source model |
|---|---|---|
| Login page fidelity | Roughly comparable | Roughly comparable |
| List page filter logic | Clearly missing | Fully implemented |
| Form page validation details | Many omissions | Accurately reproduced |
| Generation speed | Over 30 minutes | About 3 minutes |
The conclusion is clear: the two are close on standard pages, but there is a noticeable gap in depth of requirement understanding. This is the core capability that determines whether a model can handle complex engineering tasks, and it is also the main battleground for the next stage of competition.
3. The Significance of Open Source: From Scores to Ecosystem
3.1 Open Source Lowers the Barrier, Not Just the Price
Even though a gap remains compared with leading closed-source models, the real value of open source lies in:
- Private deployment: Data-sensitive enterprises in finance, healthcare, and government can fully control the data pipeline and build autonomous AI applications with infrastructure such as object storage, logging services, and monitoring and alerting.
- Fine-tuning and customization: Enterprises can perform domain fine-tuning based on their own codebases and business documents, using “domain knowledge” to compensate for gaps in “general understanding.” The depth-of-understanding issue exposed in this test can precisely be improved through vertical fine-tuning.
- Auditability and explainability: Open model weights mean behavior can be reproduced and risks can be assessed, which is critical for enterprise adoption.
3.2 Impact on the Industry Landscape
The continued catch-up of open-source models creates a dual effect:
- Promoting technology accessibility: The cost for small and medium-sized teams to access large model capabilities drops significantly, lowering the barrier to innovation.
- Pushing closed-source models to iterate: Under competitive pressure, closed-source vendors must accelerate capability upgrades and cost optimization, ultimately benefiting the entire developer community.
From a development-path perspective, the current strategy of Chinese open-source models is to “first use open source to build an ecosystem and a feedback loop, then use real usage data to feed iteration.” The queuing and speed issues observed in this test are, in a sense, normal phenomena during this rapid iteration phase.
4. Selection Advice for Developers
Based on this test, here are several practical suggestions:
- Allocate models by task complexity: Open-source or free models are sufficient for prototype generation and standard pages. For core modules involving complex state logic and fine-grained interactions, prioritize models with stronger understanding, or adopt a hybrid model of “model generation + manual refinement.”
- Make requirement documents machine-friendly: Clearly write field structures, validation rules, and state transitions. Provide data structure examples when necessary. This can significantly improve generation accuracy.
- Build an acceptance checklist: Convert the document item by item into checkable acceptance items to avoid hidden deviations such as “it looks right but functionality is missing.”
- Focus on iteration speed rather than single-point scores: Open-source models update very quickly, and today’s weaknesses may be addressed in the next version. Model selection should remain flexible.
5. Conclusion
The conclusion of this test can be summarized in one sentence: standard pages are already usable, complex logic still has gaps, and the open-source ecosystem is where long-term value lies. Competition among large models is shifting from “benchmark capability” to “real engineering capability,” while open-source strategies provide a practical path toward technology accessibility and enterprise autonomy. For developers, the right approach in a rapidly changing AI era is to view marketing claims rationally, insist on hands-on testing, and build their own evaluation system.
