Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix: update provider request filtering to include settings for disabling browser requests (#12002)

sxjeru4f3055e0c53d
diff --git a/packages/model-bank/src/aiModels/cerebras.ts b/packages/model-bank/src/aiModels/cerebras.ts
index 159bbfe12b2..31cd3d484f2 100644
--- a/packages/model-bank/src/aiModels/cerebras.ts
+++ b/packages/model-bank/src/aiModels/cerebras.ts
@@ -1,4 +1,4 @@
-import type { AIChatModelCard } from '../types/aiModel';
+import { type AIChatModelCard } from '../types/aiModel';
const cerebrasModels: AIChatModelCard[] = [
{
@@ -21,24 +21,6 @@ const cerebrasModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- },
- contextWindowTokens: 131_072,
- description:
- 'Qwen 3 32B: strong at multilingual and coding tasks, suitable for mid-scale production use.',
- displayName: 'Qwen 3 32B',
- id: 'qwen-3-32b',
- pricing: {
- units: [
- { name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
{
abilities: {
functionCall: true,
@@ -54,22 +36,6 @@ const cerebrasModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- },
- contextWindowTokens: 131_072,
- description: 'Llama 3.3 70B: a mid-to-large Llama model balancing reasoning and throughput.',
- displayName: 'Llama 3.3 70B',
- id: 'llama-3.3-70b',
- pricing: {
- units: [
- { name: 'textInput', rate: 0.85, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
{
abilities: {
functionCall: true,
diff --git a/packages/model-bank/src/aiModels/ollamacloud.ts b/packages/model-bank/src/aiModels/ollamacloud.ts
index ec94f74057b..9e57ede9bc3 100644
--- a/packages/model-bank/src/aiModels/ollamacloud.ts
+++ b/packages/model-bank/src/aiModels/ollamacloud.ts
@@ -1,6 +1,30 @@
-import { type AIChatModelCard } from '../types/aiModel';
+import { type AIChatModelCard } from '../types/aiModel';
const ollamaCloudModels: AIChatModelCard[] = [
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ vision: true,
+ },
+ contextWindowTokens: 262_144,
+ description:
+ 'Qwen3.5 is a unified vision–language foundation model with a hybrid architecture (Mixture-of-Experts + linear attention), offering strong multimodal reasoning, coding, and long-context capabilities with a 256K context window.',
+ displayName: 'Qwen3.5 397B A17B',
+ id: 'qwen3.5:397b',
+ type: 'chat',
+ },
+ {
+ abilities: {
+ functionCall: true,
+ },
+ contextWindowTokens: 262_144,
+ description:
+ "Qwen3-Coder-Next is a coding-focused language model from Alibaba's Qwen team, optimized for agentic coding workflows and local development. Built on top of Qwen3-Next-80B-A3B-Base with hybrid attention and MoE architecture, trained on large-scale executable tasks with environment interaction and reinforcement learning.",
+ displayName: 'Qwen3 Coder Next',
+ id: 'qwen3-coder-next',
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
diff --git a/packages/model-bank/src/aiModels/openai.ts b/packages/model-bank/src/aiModels/openai.ts
index 8fd15eb76eb..feaa763b7bc 100644
--- a/packages/model-bank/src/aiModels/openai.ts
+++ b/packages/model-bank/src/aiModels/openai.ts
@@ -1030,31 +1030,6 @@ export const openaiChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- functionCall: true,
- reasoning: true,
- vision: true,
- },
- contextWindowTokens: 200_000,
- description:
- 'codex-mini-latest is a fine-tuned o4-mini model for the Codex CLI. For direct API use, we recommend starting with gpt-4.1.',
- displayName: 'Codex mini',
- id: 'codex-mini-latest',
- maxOutput: 100_000,
- pricing: {
- units: [
- { name: 'textInput_cacheRead', rate: 0.375, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textInput', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- releasedAt: '2025-06-01',
- settings: {
- extendParams: ['reasoningEffort'],
- },
- type: 'chat',
- },
{
abilities: {
functionCall: true,
diff --git a/packages/model-bank/src/aiModels/openrouter.ts b/packages/model-bank/src/aiModels/openrouter.ts
index e87be6e83b2..28bdbf2f92c 100644
--- a/packages/model-bank/src/aiModels/openrouter.ts
+++ b/packages/model-bank/src/aiModels/openrouter.ts
@@ -1015,23 +1015,6 @@ const openrouterChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- abilities: {
- vision: true,
- },
- contextWindowTokens: 131_072,
- description:
- 'LLaMA 3.2 is designed for tasks combining vision and text. It excels at image captioning and visual QA, bridging language generation and visual reasoning.',
- displayName: 'Llama 3.2 90B Vision',
- id: 'meta-llama/llama-3.2-90b-vision-instruct',
- pricing: {
- units: [
- { name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
{
abilities: {
functionCall: true,
diff --git a/packages/model-bank/src/aiModels/qwen.ts b/packages/model-bank/src/aiModels/qwen.ts
index 515901000b4..448f0aba8fe 100644
--- a/packages/model-bank/src/aiModels/qwen.ts
+++ b/packages/model-bank/src/aiModels/qwen.ts
@@ -3,6 +3,55 @@ import { type AIChatModelCard, type AIImageModelCard } from '../types/aiModel';
// https://help.aliyun.com/zh/model-studio/models?spm=a2c4g.11186623
const qwenChatModels: AIChatModelCard[] = [
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ vision: true,
+ },
+ contextWindowTokens: 262_144,
+ description:
+ 'Qwen3.5 397B A17B is a large-scale open model in the Qwen series, delivering excellent performance in complex reasoning, knowledge QA, and coding. It supports thinking mode for highly complex tasks.',
+ displayName: 'Qwen3.5 397B A17B',
+ id: 'qwen3.5-397b-a17b',
+ maxOutput: 65_536,
+ organization: 'Qwen',
+ pricing: {
+ currency: 'CNY',
+ units: [
+ {
+ lookup: {
+ prices: {
+ '[0, 0.128]': 1.2,
+ '[0.128, 0.256]': 3,
+ },
+ pricingParams: ['textInputRange'],
+ },
+ name: 'textInput',
+ strategy: 'lookup',
+ unit: 'millionTokens',
+ },
+ {
+ lookup: {
+ prices: {
+ '[0, 0.128]': 7.2,
+ '[0.128, 0.256]': 18,
+ },
+ pricingParams: ['textInputRange'],
+ },
+ name: 'textOutput',
+ strategy: 'lookup',
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ releasedAt: '2026-02-15',
+ settings: {
+ extendParams: ['enableReasoning', 'reasoningBudgetToken'],
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
@@ -58,7 +107,7 @@ const qwenChatModels: AIChatModelCard[] = [
vision: true,
},
config: {
- deploymentName: 'qwen3-vl-plus-2025-12-19',
+ deploymentName: 'qwen3-vl-plus', // Supports context caching
},
contextWindowTokens: 262_144,
description:
@@ -295,6 +344,51 @@ const qwenChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ },
+ contextWindowTokens: 202_752,
+ description:
+ 'The GLM series is a hybrid reasoning model from Zhipu AI built for agents, with thinking and non-thinking modes.',
+ displayName: 'GLM-4.7',
+ id: 'glm-4.7',
+ maxOutput: 16_384,
+ pricing: {
+ currency: 'CNY',
+ units: [
+ {
+ lookup: {
+ prices: {
+ '[0, 0.032]': 3,
+ '[0.032, infinity]': 4,
+ },
+ pricingParams: ['textInputRange'],
+ },
+ name: 'textInput',
+ strategy: 'lookup',
+ unit: 'millionTokens',
+ },
+ {
+ lookup: {
+ prices: {
+ '[0, 0.032]': 14,
+ '[0.032, infinity]': 16,
+ },
+ pricingParams: ['textInputRange'],
+ },
+ name: 'textOutput',
+ strategy: 'lookup',
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ settings: {
+ extendParams: ['enableReasoning', 'reasoningBudgetToken'],
+ },
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
@@ -1113,7 +1207,7 @@ const qwenChatModels: AIChatModelCard[] = [
search: true,
},
config: {
- deploymentName: 'qwen-flash',
+ deploymentName: 'qwen-flash', // Supports context caching
},
contextWindowTokens: 1_000_000,
description: 'Fastest and lowest-cost Qwen model, ideal for simple tasks.',
@@ -1200,14 +1294,14 @@ const qwenChatModels: AIChatModelCard[] = [
functionCall: true,
reasoning: true,
search: true,
- vision: true
+ vision: true,
},
config: {
- deploymentName: 'qwen3.5-plus-2026-02-15',
+ deploymentName: 'qwen3.5-plus', // Supports context caching
},
contextWindowTokens: 1_000_000,
description:
- 'Qwen3.5 Plus supports text, image, and video inputs. For text-only tasks, its performance is comparable to Qwen3 Max, while delivering better efficiency and lower cost. In terms of multimodal capabilities, it shows significant improvements over the Qwen3 VL series.',
+ 'Qwen3.5 Plus supports text, image, and video input. Its performance on pure text tasks is comparable to Qwen3 Max, with better performance and lower cost. Its multimodal capabilities are significantly improved compared to the Qwen3 VL series.',
displayName: 'Qwen3.5 Plus',
enabled: true,
id: 'qwen3.5-plus',
@@ -1219,9 +1313,9 @@ const qwenChatModels: AIChatModelCard[] = [
{
lookup: {
prices: {
- '[0, 0.128]': 0.8 * 0.5,
- '[0.128, 0.256]': 2 * 0.5,
- '[0.256, infinity]': 4 * 0.5,
+ '[0, 0.128]': 0.8 * 0.1,
+ '[0.128, 0.256]': 2 * 0.1,
+ '[0.256, infinity]': 4 * 0.1,
},
pricingParams: ['textInputRange'],
},
@@ -1229,6 +1323,19 @@ const qwenChatModels: AIChatModelCard[] = [
strategy: 'lookup',
unit: 'millionTokens',
},
+ {
+ lookup: {
+ prices: {
+ '[0, 0.128]': 0.8 * 1.25,
+ '[0.128, 0.256]': 2 * 1.25,
+ '[0.256, infinity]': 4 * 1.25,
+ },
+ pricingParams: ['textInputRange'],
+ },
+ name: 'textInput_cacheWrite',
+ strategy: 'lookup',
+ unit: 'millionTokens',
+ },
{
lookup: {
prices: {
@@ -1249,7 +1356,7 @@ const qwenChatModels: AIChatModelCard[] = [
'[0.128, 0.256]': 12,
'[0.256, infinity]': 24,
},
- pricingParams: ['textInputRange', 'thinkingMode'],
+ pricingParams: ['textInputRange'],
},
name: 'textOutput',
strategy: 'lookup',
@@ -1257,7 +1364,7 @@ const qwenChatModels: AIChatModelCard[] = [
},
],
},
- releasedAt: '2026-02-16',
+ releasedAt: '2026-02-15',
settings: {
extendParams: ['enableReasoning', 'reasoningBudgetToken'],
searchImpl: 'params',
@@ -1271,13 +1378,12 @@ const qwenChatModels: AIChatModelCard[] = [
search: true,
},
config: {
- deploymentName: 'qwen-plus-2025-12-01',
+ deploymentName: 'qwen-plus', // Supports context caching
},
contextWindowTokens: 1_000_000,
description:
'Enhanced ultra-large Qwen model supporting Chinese, English, and other languages.',
displayName: 'Qwen Plus',
- enabled: true,
id: 'qwen-plus',
maxOutput: 32_768,
organization: 'Qwen',
@@ -1340,56 +1446,6 @@ const qwenChatModels: AIChatModelCard[] = [
reasoning: true,
search: true,
},
- contextWindowTokens: 262_144,
- description:
- 'Qwen3 Max models deliver large gains over the 2.5 series in general ability, Chinese/English understanding, complex instruction following, subjective open tasks, multilingual ability, and tool use, with fewer hallucinations. The latest qwen3-max improves agentic programming and tool use over qwen3-max-preview. This release reaches field SOTA and targets more complex agent needs.',
- displayName: 'Qwen3 Max Thinking',
- id: 'qwen3-max-2026-01-23',
- maxOutput: 65_536,
- organization: 'Qwen',
- pricing: {
- currency: 'CNY',
- units: [
- {
- lookup: {
- prices: {
- '[0, 0.032]': 2.5,
- '[0.032, 0.128]': 4,
- '[0.128, 0.252]': 7,
- },
- pricingParams: ['textInputRange'],
- },
- name: 'textInput',
- strategy: 'lookup',
- unit: 'millionTokens',
- },
- {
- lookup: {
- prices: {
- '[0, 0.032]': 10,
- '[0.032, 0.128]': 16,
- '[0.128, 0.252]': 28,
- },
- pricingParams: ['textInputRange'],
- },
- name: 'textOutput',
- strategy: 'lookup',
- unit: 'millionTokens',
- },
- ],
- },
- releasedAt: '2026-01-23',
- settings: {
- extendParams: ['enableReasoning', 'reasoningBudgetToken'],
- searchImpl: 'params',
- },
- type: 'chat',
- },
- {
- abilities: {
- functionCall: true,
- search: true,
- },
config: {
deploymentName: 'qwen3-max', // Supports context caching
},
@@ -1407,9 +1463,9 @@ const qwenChatModels: AIChatModelCard[] = [
{
lookup: {
prices: {
- '[0, 0.032]': 3.2 * 0.2,
- '[0.032, 0.128]': 6.4 * 0.2,
- '[0.128, infinity]': 9.6 * 0.2,
+ '[0, 0.032]': 2.5 * 0.2,
+ '[0.032, 0.128]': 4 * 0.2,
+ '[0.128, infinity]': 7 * 0.2,
},
pricingParams: ['textInputRange'],
},
@@ -1420,9 +1476,9 @@ const qwenChatModels: AIChatModelCard[] = [
{
lookup: {
prices: {
- '[0, 0.032]': 3.2,
- '[0.032, 0.128]': 6.4,
- '[0.128, infinity]': 9.6,
+ '[0, 0.032]': 2.5,
+ '[0.032, 0.128]': 4,
+ '[0.128, 0.252]': 7,
},
pricingParams: ['textInputRange'],
},
@@ -1433,9 +1489,9 @@ const qwenChatModels: AIChatModelCard[] = [
{
lookup: {
prices: {
- '[0, 0.032]': 12.8,
- '[0.032, 0.128]': 25.6,
- '[0.128, infinity]': 38.4,
+ '[0, 0.032]': 10,
+ '[0.032, 0.128]': 16,
+ '[0.128, 0.252]': 28,
},
pricingParams: ['textInputRange'],
},
@@ -1445,8 +1501,9 @@ const qwenChatModels: AIChatModelCard[] = [
},
],
},
- releasedAt: '2025-09-23',
+ releasedAt: '2026-01-23',
settings: {
+ extendParams: ['enableReasoning', 'reasoningBudgetToken'],
searchImpl: 'params',
},
type: 'chat',
diff --git a/packages/model-bank/src/aiModels/siliconcloud.ts b/packages/model-bank/src/aiModels/siliconcloud.ts
index a3d46d01471..0e7192c8545 100644
--- a/packages/model-bank/src/aiModels/siliconcloud.ts
+++ b/packages/model-bank/src/aiModels/siliconcloud.ts
@@ -1,7 +1,30 @@
-import { type AIChatModelCard, type AIImageModelCard } from '../types/aiModel';
+import { type AIChatModelCard, type AIImageModelCard } from '../types/aiModel';
// https://siliconflow.cn/zh-cn/models
const siliconcloudChatModels: AIChatModelCard[] = [
+ {
+ abilities: {
+ functionCall: true,
+ },
+ contextWindowTokens: 192_000,
+ description:
+ 'MiniMax-M2.5 is the latest large language model developed by MiniMax, trained through large-scale reinforcement learning across hundreds of thousands of complex, real-world environments. Featuring an MoE architecture with 229 billion parameters, it achieves industry-leading performance in tasks such as programming, agent tool-calling, search, and office scenarios.',
+ displayName: 'MiniMax-M2.5 (Pro)',
+ id: 'Pro/MiniMaxAI/MiniMax-M2.5',
+ pricing: {
+ currency: 'CNY',
+ units: [
+ { name: 'textInput_cacheRead', rate: 0.21, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput', rate: 2.1, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 8.4, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-02-13',
+ settings: {
+ extendParams: ['reasoningBudgetToken'],
+ },
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
@@ -9,7 +32,7 @@ const siliconcloudChatModels: AIChatModelCard[] = [
},
contextWindowTokens: 198_000,
description:
- 'GLM-5 是智谱推出的新一代大语言模型,专注于复杂系统工程和长周期 Agent 任务。模型参数扩展至 744B 参数(40B 激活),并集成了 DeepSeek Sparse Attention。',
+ "GLM-5 is Zhipu's next-generation large language model, focusing on complex system engineering and long-duration Agent tasks. The model parameters have been expanded to 744B (40B active) and integrate DeepSeek Sparse Attention.",
displayName: 'GLM-5 (Pro)',
id: 'Pro/zai-org/glm-5',
pricing: {
diff --git a/packages/model-bank/src/aiModels/stepfun.ts b/packages/model-bank/src/aiModels/stepfun.ts
index 19fc2735df1..7a5298351b1 100644
--- a/packages/model-bank/src/aiModels/stepfun.ts
+++ b/packages/model-bank/src/aiModels/stepfun.ts
@@ -8,11 +8,10 @@ const stepfunChatModels: AIChatModelCard[] = [
functionCall: true,
reasoning: true,
search: true,
- vision: true,
},
- contextWindowTokens: 262_144,
+ contextWindowTokens: 256_000,
description:
- 'The flagship language reasoning model from Stepfun. This model delivers top-tier reasoning capabilities along with fast and reliable execution. It can decompose and plan complex tasks, quickly and reliably invoke tools to carry them out, and excel in logical reasoning, mathematics, software engineering, deep research, and other sophisticated tasks. The context length is 256K.',
+ 'Stepfun’s flagship language reasoning model.This model has top-notch reasoning capabilities and fast and reliable execution capabilities.Able to decompose and plan complex tasks, call tools quickly and reliably to perform tasks, and be competent in various complex tasks such as logical reasoning, mathematics, software engineering, and in-depth research.',
displayName: 'Step 3.5 Flash',
enabled: true,
id: 'step-3.5-flash',
@@ -171,7 +170,6 @@ const stepfunChatModels: AIChatModelCard[] = [
description:
'Built on the next-generation in-house MFA attention architecture, delivering Step-1-like results at much lower cost while achieving higher throughput and faster latency. Handles general tasks with strong coding ability.',
displayName: 'Step 2 Mini',
- enabled: true,
id: 'step-2-mini',
pricing: {
currency: 'CNY',
@@ -287,7 +285,6 @@ const stepfunChatModels: AIChatModelCard[] = [
description:
'Strong image understanding with better visual performance than the Step-1V series.',
displayName: 'Step 1o Vision 32K',
- enabled: true,
id: 'step-1o-vision-32k',
pricing: {
currency: 'CNY',
@@ -308,7 +305,6 @@ const stepfunChatModels: AIChatModelCard[] = [
description:
'Strong image understanding, outperforming 1o in math and coding. Smaller than 1o with faster output.',
displayName: 'Step 1o Turbo Vision',
- enabled: true,
id: 'step-1o-turbo-vision',
pricing: {
currency: 'CNY',
diff --git a/packages/model-bank/src/aiModels/wenxin.ts b/packages/model-bank/src/aiModels/wenxin.ts
index a369e764eb6..1a090e952c3 100644
--- a/packages/model-bank/src/aiModels/wenxin.ts
+++ b/packages/model-bank/src/aiModels/wenxin.ts
@@ -451,22 +451,6 @@ const wenxinChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
- {
- contextWindowTokens: 131_072,
- description:
- 'Qianfan Lightning 128B A19B is a high-performance Chinese general model for complex QA and large-scale reasoning.',
- displayName: 'Qianfan Lightning 128B A19B',
- id: 'qianfan-lightning-128b-a19b',
- maxOutput: 16_384,
- pricing: {
- currency: 'CNY',
- units: [
- { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
- { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
- ],
- },
- type: 'chat',
- },
{
contextWindowTokens: 32_768,
description:
diff --git a/packages/model-bank/src/modelProviders/index.test.ts b/packages/model-bank/src/modelProviders/index.test.ts
new file mode 100644
index 00000000000..903c636f63d
--- /dev/null
+++ b/packages/model-bank/src/modelProviders/index.test.ts
@@ -0,0 +1,48 @@
+import { afterEach, beforeEach, describe, expect, it } from 'vitest';
+
+import { type ModelProviderCard } from '@/types/llm';
+
+import { DEFAULT_MODEL_PROVIDER_LIST, isProviderDisableBrowserRequest } from './index';
+
+describe('isProviderDisableBrowserRequest', () => {
+ const originalProviders = [...DEFAULT_MODEL_PROVIDER_LIST];
+
+ const createProvider = (overrides: Partial<ModelProviderCard>): ModelProviderCard => ({
+ chatModels: [],
+ id: 'test-provider',
+ name: 'Test Provider',
+ settings: {},
+ url: 'https://example.com',
+ ...overrides,
+ });
+
+ beforeEach(() => {
+ DEFAULT_MODEL_PROVIDER_LIST.length = 0;
+ DEFAULT_MODEL_PROVIDER_LIST.push(
+ createProvider({ id: 'root-disabled', disableBrowserRequest: true }),
+ createProvider({ id: 'settings-disabled', settings: { disableBrowserRequest: true } }),
+ createProvider({ id: 'enabled-provider' }),
+ );
+ });
+
+ afterEach(() => {
+ DEFAULT_MODEL_PROVIDER_LIST.length = 0;
+ DEFAULT_MODEL_PROVIDER_LIST.push(...originalProviders);
+ });
+
+ it('returns true for providers with root-level disableBrowserRequest', () => {
+ expect(isProviderDisableBrowserRequest('root-disabled')).toBe(true);
+ });
+
+ it('returns true for providers with settings.disableBrowserRequest', () => {
+ expect(isProviderDisableBrowserRequest('settings-disabled')).toBe(true);
+ });
+
+ it('returns false for providers without disableBrowserRequest', () => {
+ expect(isProviderDisableBrowserRequest('enabled-provider')).toBe(false);
+ });
+
+ it('returns false for unknown provider id', () => {
+ expect(isProviderDisableBrowserRequest('not-exists')).toBe(false);
+ });
+});
diff --git a/packages/model-bank/src/modelProviders/index.ts b/packages/model-bank/src/modelProviders/index.ts
index 7c3ef3d4017..e2b2dc94737 100644
--- a/packages/model-bank/src/modelProviders/index.ts
+++ b/packages/model-bank/src/modelProviders/index.ts
@@ -211,7 +211,9 @@ export const filterEnabledModels = (provider: ModelProviderCard) => {
};
export const isProviderDisableBrowserRequest = (id: string) => {
- const provider = DEFAULT_MODEL_PROVIDER_LIST.find((v) => v.id === id && v.disableBrowserRequest);
+ const provider = DEFAULT_MODEL_PROVIDER_LIST.find(
+ (v) => v.id === id && (v.disableBrowserRequest || v.settings?.disableBrowserRequest),
+ );
return !!provider;
};