How to Rebuild an AI Chat Application with Multiple Open-Source Models

    A practical experiment compares six model-and-harness combinations tasked with analyzing, reproducing, and improving an AI chat application. The results show why product thinking, UI fidelity, and proactive testing can matter as much as raw model capability in end-to-end AI engineering workflows.

    1. Background: An Open-Source Experiment Enabled by a Broad API

    Recently, a major open-source AI vendor released a comprehensive application API suite. It covers many of the core capabilities required by modern AI applications, including deep reasoning, web search, file input and parsing, text-to-speech (TTS), and automatic speech recognition (ASR).

    More notably, the official documentation explicitly states that developers can use the APIs to reproduce the vendor’s complete official application on a one-to-one basis.

    That is unusual from a commercial product perspective. Vendors typically treat their interfaces and interaction designs as highly valuable intellectual property and try to prevent direct imitation. In this case, however, developers were effectively given permission to “copy the assignment” and build their own versions.

    Not long afterward, users noticed that the service had begun introducing usage limits, including restrictions on the number of daily conversations and the maximum length of individual inputs. Some users joked that the broad API access was intended to let heavy users build their own versions rather than consume resources from the official product while the vendor focused on more advanced general intelligence goals.

    Jokes aside, the permission to reproduce the application created an interesting opportunity for a structured experiment: use several different model combinations to independently complete the same reproduction task and compare their results. This was both a product-reimplementation exercise and a useful way to observe differences in model capabilities and execution strategies.

    2. Experiment Design: Six Model-and-Harness Combinations and Three Deliverables

    2.1 Test Subjects

    The experiment used six different model-and-harness combinations covering several technical approaches:

    • A deep-reasoning model paired with an intelligent multi-agent collaboration mechanism
    • Different versions of a flagship model family paired with general-purpose coding tools
    • A long-context model paired with a standard context client
    • A domestic flagship model paired with its official client

    To avoid turning the experiment into a conventional product benchmark, the specific model names were not disclosed. The focus was instead placed on how each combination planned and executed the task.

    2.2 Deliverables

    Each model combination had to independently produce three deliverables:

    1. A product requirements document and feature map
      The model first had to perform the product-management work: identify the target website’s functionality and create a feature structure diagram.

    2. A one-to-one reproduction of the website
      The reproduced site needed to match the original website’s functionality and UI as closely as possible.

    3. An improved version based on the model’s own understanding
      Starting from the reproduced version, the model had to research strong practices across the web, add improvements it considered useful, and produce a new design.

    2.3 Prompt Design

    The experiment used two rounds of prompts. The first round provided only the task requirements. The second round supplied information such as API keys.

    This design made it possible to observe an important difference: after receiving the credentials, would a model perform only the simplest smoke test and stop, or would it conduct deeper integration testing, discover problems, and fix them proactively?

    The differences were significant. Some models made code changes and performed only a basic connectivity check. Others created multiple rounds of edge-case tests, exposed potential defects, and iterated on the implementation.

    The core prompt was as follows:

    1. You are a senior product manager tasked with reproducing an AI chat web application.
    2. Reference materials:
    3. - The target website, which is already logged in and can be accessed through browser tools
    4. - The official API documentation
    5. Your tasks:
    6. 1. Create a product report that documents the website’s features and includes a product feature structure diagram;
    7. 2. Reproduce the website with functionality and UI as close to the original as possible;
    8. 3. Improve the website based on your own understanding and create a new version.
    9. You may research the web and add appropriate features.
    10. Ignore all previous memories, skills, MCP tools, and similar context. Start directly.

    3. Evaluation Results: Which Models Were Best at Reproduction?

    3.1 The Best Overall Combination

    Overall, the strongest combination was a deep-reasoning flagship model paired with a coding tool. It delivered the most thorough product report and the most reliable visual reproduction.

    Its strengths appeared in three areas:

    • Rigorous product thinking
      The report specifically noted that shareable links should be tested in another browser environment. This showed that the model was considering the complete delivery and acceptance process rather than focusing only on the code.

    • High visual accuracy
      On the mobile version, details such as the position and dimensions of the input box closely matched the original. The result was not merely similar in appearance; it achieved near pixel-level alignment.

    • Complete core functionality
      Core interaction flows, including conversations, chat history, and switching between web-search and other modes, were all functional.

    3.2 Differences in Model Strategies

    The other combinations also demonstrated distinct and useful strategies.

    • The long-context group and its deep-testing strategy
      After receiving the API key, this group performed more extensive functional validation. It discovered bugs in the reproduction, iterated on the implementation, and delivered noticeably higher quality than groups that stopped after confirming basic connectivity.

    • The lightweight configuration and shortest-path strategy
      Some models performed only a minimal connectivity test after receiving the API key. They did not actively investigate potential issues, revealing limited testing initiative in agent-based workflows.

    • The value of team-based collaboration
      The group using a multi-agent collaboration mechanism showed stronger structure during requirements analysis. Its report divided the product into clearer modules.

    4. General Methodology: A Reusable Process for Reproducing AI Products

    Regardless of the specific model, the experiment produced a reusable technical workflow.

    4.1 Analyze the Product Before Writing Code

    Use browser tools to explore the target website and create a feature inventory before implementation. The inventory may include:

    • The conversation area
    • A sidebar containing historical conversations
    • Mode switching, such as deep reasoning and web search
    • File uploads
    • Markdown rendering

    Creating a feature structure diagram before coding can significantly reduce rework.

    4.2 Choose a Simple Frontend Architecture

    Reproduction tasks generally benefit from a straightforward single-page application structure:

    1. src/
    2. ├── components/ # Chat bubbles, input box, sidebar
    3. ├── services/ # API wrapper layer and streaming SSE handling
    4. └── views/ # Main interface layout

    The API layer should pay particular attention to streaming responses. The typing effect is central to the user experience of a chat application, so the implementation must correctly handle SSE chunks, disconnections, retries, and error-state rendering.

    4.3 Use the Optimization Phase to Evaluate Product Understanding

    The third deliverable was the clearest indicator of a model’s product sense.

    Some groups made only superficial changes, such as adjusting colors or adding rounded corners. Stronger groups researched best practices from comparable products and introduced genuinely useful capabilities, such as conversation export, quick commands, and multi-turn context management.

    5. Conclusion

    This experiment shows that when a vendor exposes a sufficiently complete set of APIs, independent developers can reproduce a mature AI chat application with high quality.

    The results also suggest a clear lesson for model selection: although a model’s underlying capability sets the upper limit, delivery quality in an agent workflow is often determined by other factors, including proactive testing, attention to implementation details, and product thinking.

    End-to-end reproduction tasks like this can serve as effective practical tests for evaluating AI models and their supporting tools.

    The infrastructure required for production deployment—such as page hosting, API gateways, monitoring, and alerting—can be implemented with general-purpose cloud services, including Baidu AI Cloud Function Compute and API Gateway.