Building a Multi-Model Chat App: A Technical Practice Report

    This article documents a hands-on exercise in replicating a conversational web application using six combinations of large language models and agent execution frameworks. Under a unified two-round prompt design and shared acceptance criteria, each combination had to produce a feature document and structure diagram, a high-fidelity replica of the target page, and an experience-optimized version. The key differences emerged in the second round, once API keys were provided: some combinations stopped at minimal validation, while others proactively tested multi-turn conversations, long contexts, malformed input, and concurrent requests. The article proposes a five-dimension evaluation framework and a reusable engineering workflow covering information extraction, API contract definition, incremental commits, and regression checklists.

    1. Background and Problem Definition

    Once the capabilities of a group of large models are made available openly, what developers care about most is often not parameter count but whether a real product can be built end to end with them. This article uses “replicate a conversational web page” as the task vehicle. Six combinations of “model + agent execution framework” were selected and, under unified constraints, asked to complete three things: output a product feature description and structure diagram, reproduce the interface and interactions of the target page, and then produce an experience-optimized version based on that understanding.

    The task looks simple, but it actually tests a model’s overall capability across a long chain: page understanding, information extraction, front-end implementation, API integration, self-testing, and defect fixing. The source material comes from a public evaluation, but its conclusions should not stop at “who is stronger”; they should be abstracted into a transferable engineering method.

    2. Unified Experiment Design

    To keep results comparable, all combinations used the same two-round prompt set and the same acceptance criteria.

    The first round provided only the requirements, with no keys, to test whether a complete skeleton could be built without external dependencies. The second round added API keys, to test whether the combination would perform deep validation once real capabilities were available.

    The unified deliverables fell into three categories:

    • A product feature document and feature structure diagram;
    • A replica highly consistent with the target page;
    • An improved version based on that understanding.

    The core structure of the prompt can be abstracted as:

    1. Role: Senior product manager + front-end engineer
    2. Goal: Replicate a conversational web page
    3. Input: Target page URL, API documentation URL, available browser tools (logged-in state)
    4. Output:
    5. 1) Feature list + structure diagram
    6. 2) High-fidelity replica
    7. 3) Experience-optimized version
    8. Constraints: No reliance on existing memory, skill packs, or external plugins; execute directly

    This format fixes the five elements—role, goal, input, output, and constraints—reducing the deviation caused by free-form model behavior.

    3. The Key Differences Appeared in the Second Round

    In the first round, every combination produced a runnable interface, and the gaps were not obvious. The real dividing line was the second round: after being told the keys were available, some combinations performed only “minimum viable validation,” such as sending one message to confirm a response; others proactively constructed scenarios including multi-turn conversations, extra-long contexts, malformed input, and concurrent requests, thereby exposing defects and continuing to optimize.

    This suggests that differences in model capability are often not about “whether it can write code” but about “whether it is willing to dig deeper once resources are available.” In real engineering, this self-driven validation mindset is more valuable than one-shot generation accuracy.

    4. Suggested Evaluation Dimensions

    To make the conclusions reusable, the evaluation can be split into five dimensions, each with verifiable criteria:

    1. Documentation quality: whether features are layered, whether the structure diagram covers the main modules, and whether boundary conditions are annotated;
    2. Fidelity: whether layout, spacing, responsive breakpoints, and the position and size of the input box are consistent;
    3. Functional completeness: whether session management, history, parameter settings, and error messages are all present;
    4. Self-testing depth: whether multi-turn, exception, concurrency, and cross-browser scenarios are covered;
    5. Optimization reasonableness: whether new capabilities solve real pain points rather than piling on unrelated features.

    Details such as “cross-browser acceptance” and “mobile input box sizing” often demonstrate engineering rigor better than the home page visuals do.

    5. A Reusable Engineering Method

    A general workflow can be distilled from this practice:

    • Start with information extraction: break the target page into a component tree and a state machine;
    • Then define the API contract: requests, responses, error codes, timeouts, and retries;
    • Then advance with small commits: static skeleton first, then interactions, then integration;
    • Finally, build a regression checklist: turn the defects found in each round into test cases.

    A sample API contract can be written as:

    1. {
    2. "endpoint": "/v1/chat/completions",
    3. "input": {"messages": "array", "stream": "boolean"},
    4. "output": {"delta": "string", "finish_reason": "string"},
    5. "errors": ["timeout", "rate_limited", "invalid_key"]
    6. }

    With a contract in place, the model can perform meaningful validation around real capabilities in the second round instead of staying at the interface layer.

    6. Conclusion

    “Replication” is only the surface; what is really being tested is the complete loop of requirement understanding, architecture decomposition, integration validation, and continuous optimization. For developers, rather than asking which model generates the closest match in one shot, it is better to accumulate the prompt structure, acceptance checklist, and regression cases. If a conversational service needs to be hosted, general cloud approaches can be adopted—container platform deployment, object storage for static assets, and logging services with monitoring and alerting for observability—so that model output truly enters an operable engineering track.