Testing Front-End Code Generation in Chinese Open-Source LLMs: Findings and Open-Source Value

    This article evaluates how Chinese large language models handle front-end code generation when driven by a realistic requirements document. It covers the evaluation setup, acceptance criteria, page-by-page findings, common gaps in functional semantics, UI style and generation efficiency, and the practical value of open weights. The goal is to help engineering teams turn model claims into verifiable metrics and adopt repeatable evaluation practices.

    1. Background: Beyond the Hype, You Need a Reproducible Evaluation Method

    Every time a new generation of Chinese large language models is released, the community quickly fills with claims that a model “matches top international models.” The hype itself has no value. What matters is translating marketing language into verifiable engineering metrics. This article uses a single experimental pattern: driving a model with a real front-end requirements document to generate a complete project. The goal is to observe how the model performs on requirement understanding, structural fidelity, interaction details, and generation efficiency, and then discuss what open-source attributes mean for the long-term development of AI.

    This article does not recommend or rank any specific product. All observations come from one hands-on comparison on a real project. The results are affected by the quality of the requirements description, the runtime environment, queueing policies, and version differences. Readers should re-test against their own scenarios.

    2. Experimental Design: Keeping the Evaluation Close to Real Development

    The credibility of an evaluation depends on input quality. The input in this test had three parts: business context, a page inventory, and interaction and validation rules. To reduce ambiguity, the requirements document used a structured format, for example:

    1. Page: Product listing
    2. Filters: category (multi-select), price range (numeric), listing status (enum)
    3. Interactions: reset pagination when filters change; support clear-all; sync query parameters to the URL
    4. Empty state: show a placeholder and a "Clear filters" entry when there is no data

    The acceptance criteria were also defined up front: runnable, accessible, complete page coverage, and closed-loop interactions. This separates “looks right” from “actually works.”

    3. Key Findings: Usability and Depth of Understanding Are Two Different Things

    The first round produced two clear signals. First, entry stability: during peak hours, the service queued requests or showed a paid-tier prompt, indicating that compute supply and concurrency scheduling are still bottlenecks. Second, output format: with no tech stack specified, the model defaulted to a front-end framework and produced a directly accessible project URL rather than scattered code snippets, which is helpful for quick validation. However, overall generation time was long, and waits on the order of half an hour noticeably disrupt iteration speed.

    Key takeaway: a project that “runs” only proves engineering usability. What really separates models is the depth of understanding of complex requirements.

    4. Page-by-Page Breakdown: Weaknesses Concentrate in the Functional Semantics Layer

    The login page was relatively complete, with a carousel, forms, and basic validation, close to “tweak it and ship.” Problems started to surface on the listing page: the page skeleton was correct, but the filters were missing entirely, and the same omission repeated across multiple listing pages. This suggests it was not a one-off mistake but a weak grasp of cross-component contracts such as “filter → pagination → URL sync.”

    The form page had more subtle issues: most fields and validations existed, but field linkage, the timing of error messages, and submission-state handling deviated from the document. In engineering terms, these deviations are harder to diagnose than a missing page, because the code compiles and is clickable yet violates business rules.

    A reusable method is to split requirements into three layers: structural (pages and components), semantic (field relationships and rules), and experiential (states and feedback). Most models are stable at the structural layer, start to degrade at the semantic layer, and are least reliable at the experiential layer.

    5. Style and Efficiency: Engineering Usability Over Visual Polish

    The UI style was average: better than a typical prototype, but still short of a mature design system, leaning engineering-oriented and lacking consistency in design language. On efficiency, top international solutions typically finish within minutes, while the Chinese solution in this test was noticeably slower, possibly related to free-tier limits and queueing. The practical recommendation is to break generation tasks into smaller batches and validate incrementally, avoiding long end-to-end generations that create long waits and rework.

    6. Why Open Source Matters: From “Usable” to “Governable”

    If Chinese models approach top international levels in most scenarios, the value of open-source attributes comes mainly from three points. First, auditability and reproducibility: enterprises can assess data flows and behavioral boundaries. Second, private deployment: combined with common cloud capabilities such as container platforms, object storage, logging services, and monitoring and alerting, teams can build a compliant and controllable development pipeline. Third, a positive ecosystem loop: open weights and toolchains attract feedback from more scenarios, pushing evaluation benchmarks and engineering practices to mature together.

    7. Practical Recommendations for Teams

    1. Build an internal evaluation set and run regressions with real requirements documents.
    2. Enforce a structured requirements template to reduce semantic ambiguity.
    3. Include generated output in code review and automated testing.
    4. Watch concurrency and cost, and choose stable entry points.
    5. When comparing multiple solutions, compare only quantifiable metrics, such as first-pass rate, defect density, and mean time to fix.