Testing Open-Source Chinese LLMs on Frontend Generation: What Works and What Breaks

    A hands-on evaluation of open-source Chinese LLMs generating a frontend project with a login page, a list page, and a form page. This article covers the testing method, where the models succeed (basic pages, prototypes), where they fail (filters, linked validation, async checks), how they compare to leading closed-source models, and what open-source models mean for the developer ecosystem.

    In recent years, large language models (LLMs) have taken on an expanding role in code generation, evolving from completing single lines of code to producing entire projects. Open-source Chinese models have improved rapidly, showing potential close to industry-leading levels in both natural language processing and programming tasks. But how well do these models perform in real engineering work? That question can only be answered with real requirements. This article uses a frontend business requirement—covering a login page, a list page, and a form page—as a benchmark to evaluate a model’s ability to automatically generate a frontend project, and discusses what open-source Chinese models mean for the broader technology ecosystem.

    1. Testing Methodology and Evaluation Criteria

    The test used a single requirements document for all pages. Each page was generated by the model from the same set of prompts, with no manual edits and no multi-round corrections, in order to observe the quality of the model’s one-shot output. For evaluation, the requirements document was broken down into individual functional points, which were then checked one by one. A functional point was marked as passed if it was fully implemented; a missing page, an unbound state, or behavior inconsistent with the document was marked as failed.

    To reproduce these results, you need to record the model version, the exact prompts, the runtime environment, and the scoring sheet. Only with all of this information can conclusions about different models be meaningfully compared.

    2. Basic Pages: Usable as a First Draft

    The login page was the most stable result in this test. The model recognized the carousel requirement in the document and implemented the related functionality completely, with no obvious omissions.

    For simple, low-interaction static display pages, current models can already produce usable first drafts, significantly shortening prototyping time. That said, drafts still require human review, especially for input handling and styling details. These pages work well as a starting point, but they should not go live without inspection.

    3. Complex Business Logic: Where Failures Concentrate

    The list page and the form page exposed the model’s main weaknesses. The list page’s filter conditions were written into the requirements document. The model could usually scaffold the table and page layout, but it failed to implement the actual behavior and state binding of the filters. The problems typically lie in how the model manages complex state and handles data flow between components.

    The issues were more pronounced on the form page. A form requires correct fields, rigorous validation, and careful interaction details. In the test, the generated form could run, but relationships between fields and complex validation logic were often not reproduced. This shows that when facing long documents with multiple constraints, the model’s ability to extract and distribute information is still not stable.

    The table below lists the most common failure types in this test, along with reproduction steps and fix suggestions.

    Failure Type Reproduction Steps Expected vs. Actual Fix Suggestion
    Missing filters Open the list page and check each filter condition in the document Expected: every filter accepts input and triggers a query; Actual: only the table was rendered, and the filter area had no state bound Declare filter fields as independent state and add query event handlers
    Missing linked validation Modify an upstream field in the form Expected: downstream fields change or become disabled accordingly; Actual: downstream fields kept their original values Clarify field dependencies and write a dependency specification table
    Missing async validation Enter a username that is already taken Expected: a message indicates the name already exists; Actual: no request was sent and no message appeared Add an async validation function and handle the loading state
    Incomplete error messages Submit an empty form directly Expected: each required field shows its own message; Actual: only a single generic error was displayed Define error copy and trigger timing for each field

    Most of these issues can be improved by explicitly supplementing dependency relationships and error copy. When teams use a model, they should first break requirements into functional points, have the model implement them one by one, and then verify the results manually.

    4. Visuals and Design: Engineering-Ready, but Aesthetics Need Humans

    The pages generated by the model were overall unremarkable in UI fidelity. The output is generally more complete than a rough prototype, but still falls short of mature component libraries and production-grade templates. Layouts are clear, while spacing and color choices are conservative, lacking product-level visual polish.

    This positioning can be summarized as “engineering usability first, design quality second.” For back-office admin systems that prioritize fast delivery, this level of capability is already sufficient. For consumer-facing applications with high experience requirements, designers and engineers still need to be deeply involved in visual restructuring and interaction refinement.

    5. The Gap with Leading Closed-Source Models

    Compared with industry-leading closed-source models, the gap mainly lies in depth of understanding. On basic pages, both achieve similar completeness. On complex interactions such as filters, field structures, and validation logic, leading models reproduce requirement details more completely.

    In terms of speed, some open-source models respond slowly when processing long contexts, while leading models typically complete full project generation faster. This is related to inference compute and model architecture.

    The gap stems primarily from two factors: the quality and distribution of training data, and the model’s ability to follow complex instructions. Complex frontend interactions require not only knowledge of templating languages, but also an understanding of runtime mechanisms and state management frameworks.

    6. The Value of Open-Source Models to the Technology Ecosystem

    Open source gives developers low-cost access to cutting-edge AI coding capabilities. The community can quickly identify a model’s weaknesses in complex logic and feed that feedback back into model iterations, forming a cycle of continuous improvement.

    At the infrastructure level, training and serving LLMs depend on stable compute and engineering platforms. Many cloud providers offer general-purpose services such as container platforms, object storage, and message queues. Enterprises can integrate open-source models into their existing CI/CD pipelines, connecting the full chain from code generation to automated deployment. This combination is worth evaluating, though actual results depend on each organization’s business scale and technology stack.

    The direction for improvement is also clear. By building more specialized frontend code training sets and applying methods such as supervised fine-tuning (SFT), open-source models have a chance to close the gap in vertical domains like low-code platforms and intelligent development assistants. SFT trains models on human-labeled pairs of inputs and ideal outputs, helping the model learn to implement complex logic according to specifications.

    7. Conclusions and Actionable Recommendations

    1. Suitable scenarios: static display pages, prototyping, and first-version pages for back-office admin systems. The model can generate a draft that humans then review.
    2. Unsuitable scenarios: consumer-facing pages involving complex linked validation, multi-state filtering, and high experience requirements. These pages should be human-led, with the model in a supporting role.
    3. Next steps for validation: build a fixed library of requirement samples, record the model version, prompts, and pass rate per functional point, and rerun the same test suite after each model upgrade.

    Open-source Chinese models can already generate usable basic frontend projects, but complex business logic still requires human oversight.