fix(ui): address provider lane review notes

This commit is contained in:
Tam Nhu Tran committed 2026-04-10 06:31:58 -04:00
1 parent ad70f93b1b
commit 5f9bafe9cd
4 files changed
+270 -100

No files matched your search

+4 -2
View File
@@ -18,6 +18,7 @@ interface LocalRuntimeDefinition {
endpoint: string;
modelsUrl: string;
commandHint: string;
pullCommandHint?: string;
recommendedModel: string | null;
parseModelIds: (payload: unknown) => string[];
}
@@ -29,6 +30,7 @@ const LOCAL_RUNTIME_DEFINITIONS: LocalRuntimeDefinition[] = [
endpoint: 'http://127.0.0.1:11434',
modelsUrl: 'http://127.0.0.1:11434/api/tags',
commandHint: 'ollama serve',
pullCommandHint: 'ollama pull',
recommendedModel: 'gemma4:e4b',
parseModelIds: (payload) => {
const models = (payload as { models?: Array<{ name?: string }> })?.models;
@@ -86,8 +88,8 @@ function toReadiness(
endpoint: definition.endpoint,
status,
commandHint:
status === 'missing-model' && definition.recommendedModel
? `ollama pull ${definition.recommendedModel}`
status === 'missing-model' && definition.recommendedModel && definition.pullCommandHint
? `${definition.pullCommandHint} ${definition.recommendedModel}`
: definition.commandHint,
recommendedModel: definition.recommendedModel,
recommendedModelInstalled,