Open Model Selection in Doubao Work: Design Rationale Behind a Multi-Model Architecture
Developers recently noticed that the Doubao Work client now lets users choose the underlying inference model for different tasks, moving from a single built-in model to an open model routing architecture. This article explains why multi-model selection matters for cost, vendor risk, and compliance, and breaks down the four core technical modules behind it: a unified model abstraction layer, model routing and dynamic scheduling, evaluation and canary releases, and observability.
1. Background: From a Built-in Model to Open Model Routing
The developer community recently noticed a change in the Doubao Work client: users can now select the underlying inference model by task type in the model configuration panel, instead of being locked into a single default model. The client integrates third-party models from multiple providers; refer to official announcements for the exact list. This article does not verify individual model versions—it focuses on the technical logic behind this kind of architecture.
At its core, this is a product architecture shift: from a “built-in model” to “open model routing.” The client no longer binds directly to one model’s API. Instead, a scheduling layer decides which model handles each request.
2. Why Open Up Model Choice
2.1 Different Tasks Demand Very Different Model Capabilities
Task types in office scenarios vary significantly:
- Short-form generation, such as email replies and meeting summaries, prioritizes low latency and low cost.
- Complex reasoning, such as code debugging, data analysis, and long-document comprehension, requires stronger reasoning capability.
- Multilingual translation and cross-cultural communication place extra demands on training corpus coverage.
No single model is optimal across all dimensions. Routing every request to the same model wastes compute on lightweight tasks without necessarily improving the experience. Opening up model choice is, in effect, finer-grained allocation of compute resources.
2.2 Enterprises Care About Cost, Vendor Risk, and Compliance
When enterprises procure office software, model invocation costs directly affect budgets. Allowing admins or users to choose models on demand serves three main purposes:
- Cost tiering: route simple tasks to lightweight models and complex tasks to heavyweight models.
- Vendor risk diversification: avoid total dependence on a single provider for core business, reducing disruption from model deprecation or API changes.
- Compliance and data sovereignty: some industries restrict cross-border data flows or specific vendors; multi-model choice makes it easier to find compliant options.
The actual cost reduction depends on task mix, call volume, and cache hit rate, so this article gives no fixed figure. Enterprises can estimate using their own historical call logs. If simple tasks account for a share p, the lightweight model’s unit price is a, and the heavyweight model’s is b, the blended unit price is roughly p×a + (1−p)×b. The values of p, a, and b must come from real data for the conclusion to be meaningful.
3. Technical Implementation: Four Core Modules of Multi-Model Integration
3.1 Unified Model Abstraction Layer
The prerequisite for multi-model integration is a unified interface that encapsulates provider differences at the lower layer. Key elements include:
- Unified request/response structures: abstract text generation, streaming output, and tool calling into a standard protocol.
- Parameter mapping: parameters such as temperature, top_p, and max_tokens differ in naming or valid ranges across models; the mapping layer converts them into a consistent user-facing representation.
- Unified error codes and retries: rate-limiting policies and error formats vary across models; the abstraction layer must classify exceptions and automatically fall back on failure.
3.2 Model Routing and Dynamic Scheduling
Routing decides which model handles each request. Common approaches include:
- Rule-based routing: the user manually picks a model, or fixed rules are set by task type or input length. Simple to implement and predictable.
- Offline-evaluation routing: select the highest-scoring model per task category based on offline benchmarks, updated periodically.
- Small-scale online experiments: route a small fraction of real traffic to candidate models and validate routing quality with feedback data.
- Budget constraints: set a call budget cap per model; switch to a fallback model once exceeded.
Reinforcement-learning-based routing requires sufficient labeled data and stable feedback signals, making it suitable for platforms with high request volume and well-defined task distributions. Small teams usually start with rule-based routing and consider more complex schemes after accumulating data.
3.3 Model Evaluation and Canary Releases
Once multiple models are exposed, quality must be evaluated continuously to ensure new models don’t degrade the overall experience.
The offline evaluation set should cover four task categories: summarization, Q&A, code, and translation. Each category needs scoring dimensions and a pass threshold, for example:
- Summarization: information coverage and factual consistency—both must pass.
- Q&A: answer correctness and citation accuracy.
- Code: executability rate and test-case pass rate.
- Translation: terminology consistency and semantic accuracy.
Threshold values should be set relative to baseline model performance; this article gives no fixed numbers.
For online canary releases, first route a small share of user traffic to the new model and compare completion rate, satisfaction rate, and retry rate. With insufficient sample sizes, conclusions are unreliable—extend the experiment or expand traffic.
Automated rollback needs explicit criteria. Below is an example set of thresholds; actual values should be set against business baselines:
- With a 5-minute statistical window, if a model’s error rate exceeds 5% with at least 200 calls in the window, flag it as abnormal.
- If the abnormal state persists for 3 consecutive windows, remove the model from the routing pool.
- Rollback granularity can be a single model, a single task type, or a single tenant, so one false positive doesn’t affect all traffic.
- After a rollback is triggered, keep a manual review entry point; on-call staff confirm the cause before deciding whether to restore.
3.4 Observability
In a multi-model architecture, troubleshooting requires knowing which model handled each request. At minimum, collect:
- Model version: log the model name and version for every call, written alongside the request log.
- Token consumption and cost: record input and output token counts per request; tag costs by model, task type, and department; aggregate daily.
- Latency and success rate: track P95 latency and success rate by task type, sampled once per minute. Trigger an alert if P95 latency exceeds the threshold for 5 consecutive minutes.
- Switch events: record whether a switch was manual (user-initiated) or automatic (router-initiated), enabling analysis of user preference and routing effectiveness.
4. The Practical Value of Free Model Choice
4.1 For Users: Comparison and Problem Localization
Previously, when users got unsatisfactory answers, they had almost no way to intervene. With open choice, users can:
- Try multiple models on the same task and find the one that best matches their writing style and domain terminology.
- Build an intuitive understanding of model capabilities through comparison, informing enterprise model selection.
- When errors or biases appear, quickly determine whether the limitation lies in the model itself or in the product logic.
4.2 For the Ecosystem: How Model Vendors Compete Will Change
In a multi-model client, model providers compete on measurable quality, cost, and task fit rather than default placement. As routing layers and evaluation data mature, vendors are pushed to differentiate on specific task categories instead of relying on exclusivity—ultimately giving users and enterprises more transparent options.
