Testing a Chinese Open-Source LLM on Frontend Development: Where Requirement Understanding Still Falls Short
A hands-on test of a Chinese open-source large language model building a real single-page application reveals solid basics but clear gaps in list filtering, complex form validation, and cross-field logic. This article covers the test method, per-page results, a comparison with a commercial model, and practical advice for teams adopting open-source models.
1. Background and Limits of This Test
Large language models are evolving fast, and comparisons between open-source and closed-source models have shifted from benchmark scores to real development tasks. For frontend developers and technical decision-makers, the practical question is whether a model can truly understand requirements and generate maintainable, runnable project code.
This test covered only three page types in one frontend project—a single, small-scale observation. Readers can use it to gauge the general direction, but it should not be treated as a comprehensive capability assessment of the model.
2. Test Method and Disclosure
The test target was a single-page application including login and authentication, product list filtering, and a form with complex entry rules. The inputs were a set of prompts and a product requirements document (PRD) covering page layout, interaction states, validation rules, and inter-component communication.
The test was run during a period of stable network conditions. The entire generation process took about 35 minutes, including queueing time on a free service tier. The result was a runnable frontend project rather than scattered code snippets.
This article does not disclose the exact model version, frontend framework version, original prompts, or the full PRD, nor does it provide detailed scoring criteria. As a result, others cannot fully reproduce the test. Anyone citing these conclusions should first supplement the missing materials.
3. Results by Page
Login Page: Basic Features Complete, but Unverified for Production
The login page included a carousel, form validation, and login state management, with clear code structure. The author noted that the model handles common components—those with abundant training examples in the community—relatively well.
This result only shows that the login page’s basic features work. No production deployment, security audit, or performance testing was performed, so it is impossible to judge whether the page could go live as-is.
List Page: Multi-Condition Filtering Missing
The PRD required multi-condition combined filtering, with specific requirements for empty data, loading, and error states. The generated code only rendered a static list—no filter UI and no corresponding state management.
The author believes this reflects a weakness in the model’s understanding of “how a page responds to user actions.” The original write-up also suggested that information in the middle of long documents may be underweighted, which could explain the dropped filter items. However, no ablation experiments were run and the model’s intermediate reasoning was not inspected, so this remains an unverified hypothesis.
Complex Form Page: Incomplete Validation and Linkage Rules
The form page involved field linkage, dynamic validation, and cross-field dependencies. The model produced a form skeleton but did not strictly implement field-level validation, conditional required fields, or cross-field data linkage.
A common rule example (illustrative only, not the actual generated code): when the shipping method is set to “express,” the detailed address becomes required and the postal code must match a six-digit format. If the generated code only checks whether the address is empty while ignoring the shipping-method condition, that is a typical missing rule. Such rules are common in daily development, showing the model still needs improvement on multi-layer conditional logic.
Visual Style: Usable but Lacking Design Polish
The page styling was conventional—better than a low-quality wireframe, but visually flatter than results carefully tuned on mature component libraries such as Ant Design or Tailwind UI. It works better as a first draft than as a final design. Teams with high visual standards can scaffold pages with a component library first, then let the model fill in business logic.
4. Comparison with a Commercial Model
The author submitted the same PRD to a commercial model as a baseline. This article does not name the model or version, nor record invocation parameters or scoring details, so the comparison should be treated as relative reference only.
| Test Dimension | Chinese Open-Source Model | Commercial Baseline | Observation |
|---|---|---|---|
| Login page | Basic features done | Basic features done | No meaningful difference |
| List page | Filtering missing | Filtering complete | The main gap observed in this test |
| Complex form page | Validation and linkage incomplete | Requirements largely met | Clear difference in multi-condition rules |
| Generation speed | Slower, affected by queueing | Faster | No baseline timing recorded; not quantifiable |
| Code quality | Runnable, needs cleanup | Better naming and abstraction | Subjective assessment; no quantitative metrics |
The author speculates the gap may relate to instruction-tuning data and training methods, but this test could not verify that. Readers should treat it as a hypothesis.
5. The Value and Cost of Open Source
Open-source models can be deployed locally, fine-tuned, and audited. For data-sensitive organizations, private deployment reduces the risk of data leaving the organization. Researchers can also inspect model behavior directly instead of relying solely on API responses.
Parameter-efficient fine-tuning methods such as LoRA let teams adapt a base model to their own business at low cost. But these benefits come with responsibility: private deployment means the team maintains its own inference services, GPU resources, and model updates, and is responsible for security patches and access control.
6. How Teams Can Use Such Models
- State technical constraints explicitly in the prompt. For example, require TypeScript interfaces, mandate that global state be managed by a specified state management library, and ask the model to describe the state transitions behind each interaction.
- Generate module by module and verify requirements one by one. After each module, check it against the corresponding PRD entries instead of generating the entire app at once.
- Run static checks and tests. Use type checking, ESLint, and unit tests to cover validation rules, surfacing “not implemented” issues early.
- Check dependencies and security. Generated code often pulls in third-party packages; scan for known vulnerabilities with tools like npm audit and confirm license compliance. Authentication and input validation require human review—working code is not enough.
- Mind data compliance. If prompts or the PRD contain customer data, internal APIs, or secrets, confirm the deployment environment meets data protection requirements. Never put secrets in prompts or code.
- Evaluate the cost and risk of private deployment. Consider inference resources, model update cadence, log retention, and access permissions.
7. Conclusion
This test shows the model can handle basic features on common pages but has clear gaps in list filtering, complex validation, and cross-field linkage. Since the model version, prompts, and scoring criteria were not disclosed, these conclusions reflect only a small-scale observation.
For technical decision-makers, the more practical question is: within your project’s workflow—combined with static checks, human review, and security audits—can the model reliably deliver requirements? If yes, it fits well as a first-draft generator. For direct delivery, more thorough verification is still needed.
