Settings: pick the summarizer (LAN H200 / laptop Ollama / auto); waiting label shows elapsed wait
This commit is contained in:
parent
8e465bdb93
commit
d66c27463c
4 changed files with 153 additions and 17 deletions
|
|
@ -57,6 +57,8 @@ data class JobInfo(
|
|||
/** Display-only phase ("loading-model", "transcribing") + 0-100 progress. */
|
||||
val stage: String? = null,
|
||||
val progress: Int? = null,
|
||||
/** ISO-8601 UTC when the job started running (null if unknown). */
|
||||
val startedAt: String? = null,
|
||||
)
|
||||
|
||||
/** Summary content keys, in display order. */
|
||||
|
|
@ -132,6 +134,7 @@ fun parseJobs(raw: String): List<JobInfo> = runCatching {
|
|||
error = o.optString("error", null).takeUnless { it.isNullOrBlank() },
|
||||
stage = o.optString("stage", null).takeUnless { it.isNullOrBlank() },
|
||||
progress = if (o.has("progress") && !o.isNull("progress")) o.optInt("progress") else null,
|
||||
startedAt = o.optString("started_at", null).takeUnless { it.isNullOrBlank() },
|
||||
)
|
||||
}
|
||||
}.getOrDefault(emptyList())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue