usebruno/bruno · error · Error
Unknown model: ${modelId}
Error message
Unknown model: ${modelId} What it means
Error "Unknown model: ${modelId}" thrown in usebruno/bruno.
Source
Thrown at packages/bruno-electron/src/ipc/ai/providers.js:208
const isBuiltInModelId = (modelId) => Boolean(MODEL_DEFINITIONS[modelId]);
const providerLabel = (providerId, aiPreferences) => {
if (PROVIDERS[providerId]) return PROVIDERS[providerId].label;
const endpointId = endpointIdFromProviderId(providerId);
if (endpointId) {
const endpoint = getCompatEndpoint(aiPreferences, endpointId);
if (endpoint) return endpoint.name || 'OpenAI-compatible';
}
return providerId;
};
/**
* Resolve a Bruno model id to a vercel-ai SDK model instance.
* Throws if the provider isn't configured (no key) or the model is unknown.
*/
const getModel = (modelId, { aiPreferences, getApiKey }) => {
const def = resolveModelDefinition(modelId, aiPreferences);
if (!def) throw new Error(`Unknown model: ${modelId}`);
const providerConfig = aiPreferences?.providers?.[def.providerId];
if (!providerConfig?.enabled) {
throw new Error(`${providerLabel(def.providerId, aiPreferences)} is not enabled. Enable it in Preferences > AI.`);
}
const isCompat = isOpenAiCompatibleProviderId(def.providerId);
const apiKey = getApiKey(def.providerId);
if (!apiKey && !isCompat) {
throw new Error(`${providerLabel(def.providerId, aiPreferences)} API key is not configured. Add it in Preferences > AI.`);
}
if (isCompat && !def.baseURL) {
throw new Error(`${providerLabel(def.providerId, aiPreferences)} is missing a Base URL. Set one in Preferences > AI.`);
}
const sdk = getSdk({ providerId: def.providerId, apiKey, baseURL: def.baseURL });
if (isOpenAiCompatibleProviderId(def.providerId)) return sdk.chat(def.sdkModelId);View on GitHub (pinned to 9bdd81c7bd)
Solutions
- Choose a model from the provider's supported model list.
- Refresh the model list or enter a valid model id manually.
When it happens
Trigger: Thrown at packages/bruno-electron/src/ipc/ai/providers.js:208 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of usebruno/bruno@9bdd81c7bd (2026-08-13).
Data as JSON: /api/errors/3b24decb680d6b8f.
Report an issue: GitHub.