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

    This article evaluates the front-end code generation capabilities of open-source Chinese large language models using a reproducible, page-by-page method. A mid-complexity requirements document covering login, list, and form pages was fed to a model to produce a runnable project end to end. Results show strong performance on standardized pages, weaker handling of explicit functional constraints such as filters and validation, and slow end-to-end generation. The article also explains why the open-source nature of these models matters: lower marginal cost of innovation, faster feedback loops, and accumulated engineering best practices. It closes with practical recommendations for integrating code generation into a controlled pipeline.

    1. Background: Beyond the Hype, a Reusable Evaluation Method

    Every time a new generation of Chinese large language models is released, community discussion heats up quickly, with claims like “on par with the international top tier” or “the best tool for a specific scenario.” Emotionally charged conclusions offer almost no help for engineering decisions. What actually drives adoption cost is how consistently a model performs across four dimensions: complex requirement understanding, long-context consistency, generation speed, and whether the output actually runs.

    A more useful approach is to take a real front-end requirements document, have the model produce an accessible, runnable project end to end, and then verify the result page by page. This article follows that method to assess the capability boundaries of open-source Chinese models in front-end code generation. Note that this is not a recommendation or comparison of any specific vendor’s product; the findings only describe the general state of open-source models in engineering-grade generation at the current stage.

    2. Experiment Design: Making Results Reproducible

    The credibility of an evaluation depends on clear inputs and clear criteria. The design here is as follows:

    • Input: A mid-complexity front-end requirements document covering three typical page types—login, list, and form—with explicit constraints including a carousel, filtering, field validation, and linked interactions.
    • No prescribed tech stack: The goal was to observe the model’s default selection preference without prompting bias. The actual output used the React stack.
    • Output requirement: Not code snippets, but a complete project URL that can be accessed directly.
    • Evaluation dimensions: Page feature completeness, requirement fidelity, UI engineering quality, end-to-end time, and stability (whether queuing or retries were needed).

    The value of this design is that it breaks the vague question “is the model good?” into checkable, scoreable engineering metrics. Any team can use it to build their own regression evaluation set.

    3. Test Results: A Capability Decay Curve Across Pages

    3.1 Usage Experience: Availability and Speed

    During the initial access phase, a “too many users, please queue or pay” message appeared repeatedly, and it took several retries to get in. Once generation started, the total time was over half an hour, which is clearly slow; queuing and rate limits under the free tier are significant variables. On the positive side, the final deliverable was a directly accessible project URL rather than scattered code blocks, which significantly reduced integration cost.

    3.2 Login Page: Solid Completeness

    The carousel specified in the requirements document was implemented correctly, with the page structure, interactions, and visual elements all in place and no obvious functional gaps. This page reached a “tweak slightly and ship” level, showing that the model’s ability to reproduce single-page, highly patterned requirements is already quite mature.

    3.3 List Page: Understanding Starts to Slow Down

    Problems emerged on the product list page: filter options explicitly stated in the document were not implemented. The key issue is that this was not an occasional omission but a systemic shortcoming shared across multiple list pages. The page skeleton was correct, but understanding at the “functional semantics layer” fell short—the model tends to generate visually reasonable structures while downplaying functional constraints explicitly declared in the document.

    3.4 Form Page: Complex Constraints Not Fully Implemented

    The form page ran, but the field set, validation rules, and linked interaction details were not fully implemented as documented. Even with clearly written requirements, the model’s fidelity on combined constraints such as multi-field relationships, conditional validation, and state linkage remained noticeably insufficient. These are exactly the requirements most likely to cause rework in business systems.

    3.5 UI Style: Engineering Usability Over Product Polish

    The overall visual quality was slightly better than a typical prototype, but still behind directly applying a mature component template; the design language leaned engineering-oriented and minimal, lacking a distinctive “wow” factor. The positioning can be summarized as: engineering-usable > product-attractive.

    4. Common Patterns at the Capability Boundary

    Aligning the three page results horizontally yields three patterns:

    1. Pattern level determines completeness: Highly standardized interfaces like the login page are reproduced almost losslessly; the more a page depends on business semantics, the more noticeable the decay.
    2. Explicit constraints get overridden by “visual reasonableness”: Requirements like filtering and validation that produce no visual difference are the most likely to be ignored.
    3. End-to-end speed is a hard gate for engineering usability: Half-hour generation versus minute-level generation makes a huge difference in real iteration rhythms, and free-tier queuing policies widen the gap further.

    The corresponding engineering advice: structure the requirements document, express functional constraints as a checklist of acceptance items rather than prose, and list “invisible requirements” such as filtering and validation separately with automated verification after generation.

    5. Why Open Source Matters: From Benchmark Comparison to Ecosystem Spillover

    Back to the more fundamental question: what does it mean for AI development when open-source Chinese models approach the international top tier? The significance lies not in a single benchmark run but in three spillover effects.

    First, lowering the marginal cost of innovation. Open weights allow universities, small and medium enterprises, and individual developers to deploy and fine-tune models locally or in their own environments, keeping data within their domain and long-term costs controllable. This sharply lowers the barrier to customization in vertical domains such as industrial quality inspection, government Q&A, and education tutoring.

    Second, accelerating the feedback loop for evaluation and improvement. Open source means defects can be reproduced and located externally; the community can submit issues around real scenarios and contribute data and evaluation sets, forming a positive cycle of “use—feedback—iterate,” which is faster than the black-box iteration of closed models.

    Third, driving the accumulation of engineering standards and best practices. As model capabilities converge, competition shifts to the engineering side: prompt and requirements documentation standards, retrieval augmentation, tool-call orchestration, automated verification of generated results, and canary and rollback mechanisms. The methodologies that accumulate here often deliver more value to the industry than the models themselves.

    6. Implementation Advice: Plugging Generation into a Controlled Pipeline

    To use code generation in production, build in the following order:

    • Structure requirements: Rewrite the document into a numbered acceptance checklist, separating functional constraints from visual descriptions.
    • Layered generation: First produce the page skeleton and information architecture, then fill in logic such as filtering and validation page by page to reduce semantic loss from one-shot generation.
    • Automated verification: Run type checks, unit tests, and accessibility scans on the generated output, turning “document requirements” into executable assertions.
    • Performance and quota planning: Define queuing, rate-limit, and timeout policies; if necessary, host self-built inference services on a container platform, and track latency and failure rates with logging and monitoring alerts.
    • Human-in-the-loop positioning: Position the model as “an accelerator for senior engineers,” with complex business rules confirmed by humans and then solidified into templates and validation layers.

    A sample acceptance checklist structure is shown below:

    1. page: product_list
    2. requirements:
    3. - id: F1
    4. type: filter
    5. fields: [category, price_range, stock]
    6. acceptance: "all three filters are visible and can be combined"
    7. - id: F2
    8. type: interaction
    9. acceptance: "list refreshes immediately after filter changes and URL stays in sync"

    7. Conclusion

    The test shows that current open-source Chinese models already reach engineering-usable quality for standardized page generation, but still have room for improvement in understanding depth for complex business semantics (filtering, field relationships, validation linkage) and in generation speed. Their real long-term value comes from the cost reduction, feedback loops, and engineering standards accumulation that open source brings. For developers, the rational approach is not to chase hype but to build a pipeline of structured requirements and automated verification, turning model capability into deliverable, maintainable software artifacts.