LLM API Upgrade Deep Dive: Five Core Capabilities for Building Intelligent Applications

    This article analyzes five newly upgraded LLM API capabilities—web search, deep-thinking search, file input, link reading, and safety moderation—covering their principles, use cases, integration tips, and common pitfalls, along with three engineering implementation scenarios to help developers build reliable, compliant AI applications.

    Introduction: From Simple Text Generation to Comprehensive Intelligent Collaboration

    As large language model (LLM) applications evolve from simple Q&A to complex business systems, developers expect far more than “fluent text generation.” A practical intelligent application typically requires the model to retrieve external information in real time, understand files in multiple formats, autonomously fetch and read linked content, and operate within a safe, controllable framework. Recently, mainstream LLM open platforms have systematically upgraded their API capabilities, adding web search, deep-thinking search, file input, link reading, and safety moderation to standard endpoints such as messages, responses, and chat completions. These capabilities are not isolated features—they work together to form a toolbox that brings the model closer to a true “agent.” This article examines the principles, use cases, and invocation considerations of each capability, and offers engineering best practices to help developers avoid common pitfalls and efficiently build next-generation AI applications.

    Capability Overview: One Upgrade, Multiple Integrations

    The core highlight of this API upgrade is the deep coupling of “perception” and “reasoning.” Traditional LLMs can only answer based on static knowledge from training data, while the new capabilities allow the model to proactively initiate network requests, parse user-uploaded documents, and even read URLs contained in messages—bringing real-time data into the reasoning context. The table below summarizes the core purpose of each capability:

    Capability Core Function Typical Use Cases
    Web Search Automatically retrieves web pages or images based on queries and cites sources Real-time news summaries, product price comparison, fact-checking
    Deep-Thinking Search Calls search multiple times during chain-of-thought reasoning and reads links Complex research questions, competitive analysis, literature reviews
    File Input Uploads PDFs, Office files, and images; extracts text or mixed text-image content Contract review, invoice parsing, chart Q&A
    Link Reading Automatically fetches URL content from user messages and incorporates it into the conversation Web page summarization, link information extraction, instant answers
    Safety Moderation Reviews inputs and outputs for risks; refuses to answer when violations are detected Public-facing applications, industries with strict compliance requirements

    Notably, all of these capabilities can be flexibly combined in both thinking mode and non-thinking mode, giving developers fine-grained control over model behavior.

    In-Depth Analysis of the Core Capabilities

    1. Web Search: Giving the Model “Real-Time Perception”

    In non-thinking mode, developers simply enable the search tool switch in the request parameters, and the model will automatically decide whether to initiate a web or image search upon receiving a user query. For example, when a user asks “What’s the weather like in a certain city today?” or “What are the specs of a newly released phone?”, the model retrieves relevant web pages, integrates key information into its answer, and appends citation links at the end for traceability.

    Technical implementation notes: This capability relies on the Function Calling mechanism. Developers need to explicitly declare the search tool in the API request and set reasonable timeout and retry policies. Since search results vary in timeliness and diversity, it is recommended to cache or deduplicate returned citation links at the application layer to avoid redundant requests. Additionally, for domain-specific applications (such as healthcare or finance), consider configuring search whitelists or keyword filters to reduce noise from irrelevant information.

    Best practices: For news or information applications, enable web search by default; for customer service bots that prefer stable responses, let users trigger it manually. Also, control search frequency to balance cost and response speed—for example, by limiting context length or applying rules such as “only search when the query contains explicit time-related words.”

    2. Deep-Thinking Search: Dynamic Information Retrieval in Multi-Step Reasoning

    Deep-thinking search is an advanced form of web search. When the model is in thinking mode (reasoning mode), it acts like a human expert: it decomposes complex questions into sub-questions and autonomously decides at each reasoning step whether a search is needed. For example, to answer “Compare the performance differences between two open-source databases,” the model might first search for each database’s technical architecture, then look up third-party benchmark reports, and finally synthesize a conclusion.

    The core value of this capability lies in the “alternation of search and reasoning.” Instead of stuffing all search results into the context at once, the model retrieves information on demand, effectively avoiding information overload and improving the accuracy and organization of answers. For developers, enabling this capability requires no additional configuration—simply turn on both thinking mode and the search tool in the request.

    Best practices: Because deep-thinking search significantly increases response time (from several seconds to tens of seconds), incorporate streaming output or progress indicators into the interaction design to reduce user anxiety. It is also recommended to structurally extract the cited sources from the model’s final output to build knowledge graphs or footnote lists, enhancing the credibility of results.

    3. File Input: Breaking Beyond Plain Text with Multimodal Context

    The new API version supports uploading PDFs, Office documents (Word, Excel, PowerPoint), and images. The model first performs plain-text extraction or mixed text-image parsing, then concatenates the extracted content into the conversational context for subsequent Q&A. This means developers can let users upload a contract PDF directly and ask, “What are the liability clauses in this contract?”—without pre-converting the file to text.

    Technical implementation notes: File uploads are typically submitted via multipart forms or pre-signed URLs. Pay attention to file size limits and format compatibility. For scanned PDFs or images containing many tables, the model may use OCR (optical character recognition), but recognition accuracy depends on image quality. Therefore, preprocess uploaded files at the application layer: check DPI, correct rotation, compress file size, and prompt users to provide clearer versions of image-only PDFs.

    Best practices: Combining “file input” with “web search” enables more powerful workflows. For example, a user uploads an industry report PDF and then asks, “Have there been new developments regarding the report’s core viewpoints in the past three months?” The model can first parse the PDF, then search the web for related news, and finally produce a timestamped comparative conclusion. This combination is especially suitable for professional fields such as investment research, law, and scientific research.

    When a user message contains a URL, developers can enable the “link reading” tool. The model identifies the link, automatically fetches the main body of the web page (filtering out navigation, ads, and other noise), and answers in the context of the current conversation. For example, if a user sends “Please summarize the main points of this article: https://example.com/…”, the model returns a structured summary directly and points out key passages.

    Technical implementation notes: This capability is essentially a built-in web page parser, but be aware of several limitations: some websites deploy anti-scraping mechanisms, require login authentication, or render content dynamically (JavaScript-driven), causing fetch failures. In such cases, the model should explicitly inform the user that “the page cannot be accessed” rather than guessing the content. Developers should set reasonable crawl timeouts in the API configuration and implement proper error handling.

    Best practices: To guard against malicious or phishing URLs, validate the format and scan the security of user-submitted URLs at the application layer, restricting them to HTTP/HTTPS protocols only. You can also combine this with the “safety moderation” capability to inspect the fetched content itself, preventing visual pollution or malicious code injection.

    5. Safety Moderation: Establishing the Baseline for Responsible AI Applications

    Any LLM application serving the public must consider content safety. This upgrade provides basic risk-control capabilities: once the safety moderation parameter is enabled, the platform reviews the model’s inputs and outputs in real time, and returns a refusal flag whenever risk rules are triggered (such as politically sensitive, pornographic, violent, or fraudulent content). This is not an optional “bonus feature”—it is a “mandatory requirement” for compliant operations.

    Technical implementation notes: Safety moderation is usually passed as an independent parameter, but pay attention to its interaction with business logic. For example, certain legitimate but sensitive industry terms (such as medical case descriptions) may trigger false positives. Therefore, developers are advised to customize moderation whitelists or sensitive-word libraries to layer on top of the platform’s baseline risk controls. In addition, developers offering application services externally must fulfill their own content safety obligations, including any applicable legal requirements such as model registration and AI-generated content labeling.

    Best practices: In the API response structure, distinguish between “normal answers” and “refusals.” When a refusal flag is received, the application layer should return a uniform fallback message such as “Sorry, I cannot answer this question,” rather than exposing raw error information. It is also recommended to establish a logging and audit mechanism that records the moderation result of each request for regulatory review purposes.

    Engineering Practices: Integrating These Capabilities into Existing Architectures

    Scenario 1: Building a Real-Time Information Q&A Bot

    Requirement: Users can ask about the latest technology news, stock quotes, or sports scores, and the system must provide answers with sources.

    Implementation approach:

    • In the backend service, configure two request modes: default mode (thinking off, web search on) and deep mode (thinking on, web search and link reading on).
    • Provide “Quick Answer” and “Deep Research” buttons in the frontend, corresponding to the two modes above.
    • For deep mode, use SSE (Server-Sent Events) streaming output to display the model’s step-by-step reasoning and search process to users, enhancing transparency.
    • In the data storage layer, store the model’s answers together with citation links in the database to build user history records.

    Scenario 2: Building an Intelligent Document Review Assistant

    Requirement: Users upload contracts, reports, or papers, and the system extracts key information, compares clauses, or generates summaries.

    Implementation approach:

    • Use a file upload component in the frontend, restricting formats to PDF, DOCX, XLSX, PNG, JPG, etc., with a maximum size of 50 MB.
    • After receiving a file, the backend calls the file parsing API (handled automatically by the platform) to obtain the text content, attaching a virtual “original filename” marker for later reference.
    • In the prompt, explicitly instruct the model to “answer based on the uploaded file content,” while also enabling “link reading” in case users paste online document links.
    • Since file parsing consumes more tokens, consider segmented extraction for files exceeding a certain page count, or adopt a “parse only the first N pages” strategy.

    Scenario 3: A Compliance-Guarded Public Customer Service System

    Requirement: An intelligent customer service open to all users must ensure that no answer violates laws or regulations.

    Implementation approach:

    • Enable the “safety moderation” parameter in all requests—this is mandatory.
    • Configure keyword filters at the business layer to pre-block sensitive personal information in user inputs (such as phone numbers or ID numbers).
    • Set up double protection: even if model-generated content passes safety moderation, deploy a lightweight classifier as a post-hoc check for hidden risks.
    • Regularly export moderation logs from the platform, analyze false positive and false negative samples, and continuously optimize the custom word library.

    Frequently Asked Questions and Solutions

    Q1: Can web search return outdated or incorrect information?
    A: Yes, it can. The quality of retrieved web pages varies, and the model may mistakenly trust low-authority sources. It is recommended to clearly note in answers that “the information comes from the web and may be inaccurate,” and to prioritize content from domains such as .edu, .gov, or well-known news outlets. If the platform supports it, you can also set “search region” or “search language” parameters in the request for filtering.

    Q2: After file input, can the model understand charts?
    A: For charts in images, the model can only perform visual-level understanding—such as recognizing titles, axis labels, and general trends—but cannot read precise values. For precise analysis, guide users to upload tabular files (such as Excel or CSV) and enable external tools like a “code interpreter” if integrated.

    Q3: What if response time becomes too long after enabling thinking mode?
    A: You can reduce the “compute budget” of thinking (if the platform supports parameters like max_tokens or reasoning_effort) to balance speed and quality. Additionally, splitting complex tasks into multiple simpler calls—for example, first extracting facts via file input and then using a short thinking pass to summarize conclusions—can significantly reduce latency.

    Q4: What if safety moderation produces false positives and blocks legitimate business queries?
    A: First, examine the error code or category label attached to the refusal flag, and adjust the custom whitelist accordingly. Second, add an “appeal” channel at the application layer so users can rephrase their questions. Finally, be sure to tune trigger thresholds in a test environment using a test set that covers both positive and negative cases.

    Summary and Outlook

    This capability upgrade of LLM APIs marks a key leap from “static knowledge Q&A” to “dynamic agent collaboration.” Web search and deep-thinking search give the model real-time awareness; file input and link reading expand the boundaries of context; and safety moderation ensures the legitimacy of large-scale deployment. Developers should make full use of these capabilities while maintaining realistic expectations: every technology has its limits, and excellent application design requires orchestrating these tools according to business scenarios, with good interactive feedback to compensate for model uncertainty.

    Looking ahead, as multimodal capabilities continue to converge (such as video understanding and audio processing) and the tool-calling ecosystem matures, LLM APIs will gradually evolve into a general-purpose “decision hub.” Starting now to familiarize yourself with these new features is a critical step toward seizing the initiative in the next wave of AI application innovation. Developers are encouraged to begin prototype validation early and include these capabilities in their technology selection evaluation checklist.