Chinese LLM Selection Guide: How Developers and Everyday Users Should Evaluate Models

    This guide explains why Chinese LLM selection should go beyond leaderboard scores and start from real usage. It separates developer-focused engineering capabilities from end-user interaction experience, then details concrete checks for API stability and streaming latency, function calling and structured output with a retry-aware code example, and long-context recall testing, including the "Lost in the Middle" issue. Readers can use these criteria to judge whether a model is ready for production integration and reliable information extraction.

    The number of Chinese LLMs is large, and release cadence is fast. Many teams look only at leaderboard scores when selecting a model. Leaderboards can reflect a model’s overall level, but they cannot answer whether your business use case will work. Selection should start from actual usage patterns, separately examining the engineering capabilities developers care about and the interaction experience ordinary users feel.

    1. Developer Perspective: API Ecosystem and Engineering Capabilities

    For developers, an LLM is a component in a system. You need to confirm whether the service is stable, whether output is controllable, and whether it can integrate with external systems.

    1. API Stability and Streaming Responses

    Service availability and latency directly affect business continuity. In streaming output scenarios, time to first token (TTFT) and token throughput determine how long users perceive they are waiting. During selection, confirm the provider’s QPS limits, billing method, and whether dedicated compute is available.

    2. Function Calling and Structured Output

    Many applications need the model to convert users’ natural language into JSON parameters, then call databases or third-party APIs. In OpenAI-compatible response structures, tool calls are located at choices[0].message.tool_calls, where arguments is a string that must be parsed again. The example below adds timeout, status-code checks, and exponential backoff retries.

    Standard response structure example:

    1. {
    2. "choices": [{
    3. "message": {
    4. "role": "assistant",
    5. "content": null,
    6. "tool_calls": [{
    7. "id": "call_1",
    8. "type": "function",
    9. "function": {"name": "get_weather", "arguments": "{\"location\": \"Beijing\"}"}
    10. }]
    11. },
    12. "finish_reason": "tool_calls"
    13. }]
    14. }

    Calling code:

    1. import json
    2. import os
    3. import time
    4. import requests
    5. URL = "https://api.example-llm.com/v1/chat/completions"
    6. API_KEY = os.environ["LLM_API_KEY"] # Read from an environment variable; never write it into code or logs
    7. HEADERS = {
    8. "Content-Type": "application/json",
    9. "Authorization": f"Bearer {API_KEY}",
    10. }
    11. PAYLOAD = {
    12. "model": "advanced-llm-v1",
    13. "messages": [{"role": "user", "content": "Help me check tomorrow's weather in Beijing"}],
    14. "tools": [{
    15. "type": "function",
    16. "function": {
    17. "name": "get_weather",
    18. "description": "Get weather information for a specified city",
    19. "parameters": {
    20. "type": "object",
    21. "properties": {
    22. "location": {"type": "string", "description": "City name, e.g., Beijing"}
    23. },
    24. "required": ["location"],
    25. },
    26. },
    27. }],
    28. }
    29. def call_model(payload, max_retries=3):
    30. for attempt in range(1, max_retries + 1):
    31. try:
    32. resp = requests.post(URL, headers=HEADERS, json=payload, timeout=(3, 30))
    33. resp.raise_for_status()
    34. try:
    35. return resp.json()
    36. except ValueError:
    37. raise RuntimeError("Response is not valid JSON")
    38. except requests.HTTPError as e:
    39. # 4xx (except 429) usually means the request itself is invalid; retrying is pointless
    40. status = e.response.status_code
    41. if status != 429 and status < 500:
    42. raise
    43. except (requests.Timeout, requests.ConnectionError):
    44. pass
    45. if attempt == max_retries:
    46. raise RuntimeError("Model service still failed after multiple retries")
    47. time.sleep(2 ** attempt) # Exponential backoff: wait 2 seconds, then 4 seconds
    48. def main():
    49. try:
    50. result = call_model(PAYLOAD)
    51. message = result["choices"][0]["message"]
    52. except (RuntimeError, requests.RequestException, KeyError, IndexError) as e:
    53. print(f"Call failed or response structure was invalid: {e}")
    54. return
    55. tool_calls = message.get("tool_calls")
    56. if not tool_calls:
    57. print(f"Model did not call a tool and answered directly: {message.get('content')}")
    58. return
    59. call = tool_calls[0]
    60. name = call["function"]["name"]
    61. try:
    62. args = json.loads(call["function"]["arguments"])
    63. except json.JSONDecodeError:
    64. print("Arguments are not valid JSON; log this and follow the fallback path")
    65. return
    66. print(f"Model identified the intent and is preparing to call tool: {name}")
    67. print(f"Parsed arguments: {args}")
    68. if __name__ == "__main__":
    69. main()
    70. # Expected output:
    71. # Model identified the intent and is preparing to call tool: get_weather
    72. # Parsed arguments: {'location': 'Beijing'}

    If the model frequently misses required parameters, outputs malformed formats, or fabricates parameter values, you will have to write a large amount of error-tolerant code. These issues should count against a model during selection.

    3. Long Context and Information Recall

    Long documents, codebases, and historical logs can fill the context window. The specific window size depends on the model version and official documentation; it varies significantly across versions and billing tiers. How much content the window can hold and whether the model can accurately use that content are two different things. Models tend to miss information in the middle of long texts, a phenomenon often called “Lost in the Middle.”

    Testing method: Choose a long document and embed a verifiable fact at the beginning, middle, and end. Ask the model to extract each fact one by one, and calculate recall at different positions. If recall in the middle is clearly lower than at the beginning and end, the model’s performance on long texts is unstable.