chore: attach observables for standalone jobs (#399)
* chore: add observable for standalone jobs Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * chore: update docker compose with latest models Signed-off-by: Ettore Di Giacinto <mudler@localai.io> --------- Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
committed by
GitHub
parent
c3bd2bee42
commit
4e89c8aac0
@@ -1184,6 +1184,15 @@ func (a *Agent) periodicallyRun(timer *time.Timer) {
|
||||
"is_reminder": true,
|
||||
}
|
||||
|
||||
// Attach observable so UI can show reminder processing state
|
||||
if a.observer != nil {
|
||||
obs := a.observer.NewObservable()
|
||||
obs.Name = "reminder"
|
||||
obs.Icon = "bell"
|
||||
a.observer.Update(*obs)
|
||||
reminderJob.Obs = obs
|
||||
}
|
||||
|
||||
// Process the reminder as a normal conversation
|
||||
a.consumeJob(reminderJob, UserRole)
|
||||
|
||||
@@ -1228,6 +1237,16 @@ func (a *Agent) periodicallyRun(timer *time.Timer) {
|
||||
types.WithReasoningCallback(a.options.reasoningCallback),
|
||||
types.WithResultCallback(a.options.resultCallback),
|
||||
)
|
||||
|
||||
// Attach observable so UI can show standalone job progress (decisions, actions, reasoning)
|
||||
if a.observer != nil {
|
||||
obs := a.observer.NewObservable()
|
||||
obs.Name = "standalone"
|
||||
obs.Icon = "clock"
|
||||
a.observer.Update(*obs)
|
||||
whatNext.Obs = obs
|
||||
}
|
||||
|
||||
a.consumeJob(whatNext, SystemRole)
|
||||
|
||||
xlog.Info("STOP -- Periodically run is done", "agent", a.Character.Name)
|
||||
|
||||
@@ -9,7 +9,7 @@ services:
|
||||
command:
|
||||
- ${MODEL_NAME:-gemma-3-4b-it-qat}
|
||||
- ${MULTIMODAL_MODEL:-gemma-3-4b-it-qat}
|
||||
# - ${IMAGE_MODEL:-sd-1.5-ggml}
|
||||
- ${IMAGE_MODEL:-Z-Image-Turbo}
|
||||
- granite-embedding-107m-multilingual
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/readyz"]
|
||||
@@ -112,7 +112,7 @@ services:
|
||||
environment:
|
||||
- LOCALAGI_MODEL=${MODEL_NAME:-gemma-3-4b-it-qat}
|
||||
- LOCALAGI_MULTIMODAL_MODEL=${MULTIMODAL_MODEL:-moondream2-20250414}
|
||||
- LOCALAGI_IMAGE_MODEL=${IMAGE_MODEL:-sd-1.5-ggml}
|
||||
- LOCALAGI_IMAGE_MODEL=${IMAGE_MODEL:-Z-Image-Turbo}
|
||||
- LOCALAGI_LLM_API_URL=http://localai:8080
|
||||
#- LOCALAGI_LLM_API_KEY=sk-1234567890
|
||||
- LOCALAGI_LOCALRAG_URL=http://localrecall:8080
|
||||
|
||||
Reference in New Issue
Block a user