Skip to content

Commit 950a0a9

Browse files
committed
[picooraclaw] setup-oracle: docker-health fallback + refreshed ONNX URL; identity: don't hardcode model
The 'DATABASE IS READY TO USE' log marker only appears on first boot of gvenzl/oracle-free, so re-running setup-oracle.sh on an already-initialized container timed out after 180s even though the DB was healthy. Added a fallback to docker's own healthcheck status. The ONNX zip moved from the OML-Resources bucket to OML-ai-models with a new pre-authenticated URL. Made the URL overridable via $ONNX_URL. IDENTITY.md: stop hardcoding 'Default to Ollama (qwen3:latest)' in the agent's self-description. The actual model lives in config.json; the system prompt should defer to that instead of forcing the LLM to lie about its provider when the operator has configured something else (e.g. xai.grok-4 via OCI GenAI).
1 parent cf5f176 commit 950a0a9

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

apps/picooraclaw/scripts/setup-oracle.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,14 @@ fi
5252
info "Waiting for database to be ready..."
5353
TIMEOUT=180
5454
ELAPSED=0
55-
while ! docker logs "$CONTAINER_NAME" 2>&1 | grep -q "DATABASE IS READY TO USE"; do
55+
db_ready() {
56+
# First boot prints the marker in container logs; subsequent boots don't.
57+
# Fall back to docker's healthcheck status for already-initialized containers.
58+
docker logs "$CONTAINER_NAME" 2>&1 | grep -q "DATABASE IS READY TO USE" && return 0
59+
[ "$(docker inspect --format '{{.State.Health.Status}}' "$CONTAINER_NAME" 2>/dev/null)" = "healthy" ] && return 0
60+
return 1
61+
}
62+
while ! db_ready; do
5663
sleep 5
5764
ELAPSED=$((ELAPSED + 5))
5865
printf "\r Waiting... %ds" "$ELAPSED"
@@ -114,7 +121,7 @@ section "Step 5/6: ONNX embedding model"
114121
info "Downloading Oracle's augmented all-MiniLM-L12-v2 model..."
115122
ONNX_WORK="/tmp/onnx_model"
116123
mkdir -p "$ONNX_WORK"
117-
curl -fsSL "https://adwc4pm.objectstorage.us-ashburn-1.oci.customer-oci.com/p/VBRD9P8ZFWkKvnfhrWxkpPe8K03-JIoM5h_8EJyJcpE80c108fuUjg7R5L5O7mMZ/n/adwc4pm/b/OML-Resources/o/all_MiniLM_L12_v2_augmented.zip" \
124+
curl -fsSL "${ONNX_URL:-https://adwc4pm.objectstorage.us-ashburn-1.oci.customer-oci.com/p/TtH6hL2y25EypZ0-rrczRZ1aXp7v1ONbRBfCiT-BDBN8WLKQ3lgyW6RxCfIFLdA6/n/adwc4pm/b/OML-ai-models/o/all_MiniLM_L12_v2_augmented.zip}" \
118125
-o "$ONNX_WORK/model.zip"
119126
cd "$ONNX_WORK" && unzip -o model.zip && cd -
120127
ONNX_FILE=$(find "$ONNX_WORK" -name "*.onnx" -type f | head -1)

apps/picooraclaw/workspace/IDENTITY.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Ultra-lightweight personal AI assistant written in Go, inspired by nanobot.
1111

1212
## Purpose
1313
- Provide intelligent AI assistance with minimal resource usage
14-
- Default to Ollama (qwen3:latest) for local, private inference
15-
- Support multiple LLM providers (OpenAI, Anthropic, Groq, etc.) when configured
14+
- Run on whichever LLM the operator has configured (the model name and provider live in `~/.picooraclaw/config.json`; do not assume Ollama, OpenAI, or any specific model unless the user asks)
15+
- Support OCI Generative AI, Ollama, OpenAI, Anthropic, Groq, OpenRouter, and other OpenAI-compatible providers
1616
- Enable easy customization through skills system
1717
- Run on minimal hardware ($10 boards, <10MB RAM)
1818

@@ -54,4 +54,4 @@ Discussions: https://github.com/jasperan/picooraclaw/discussions
5454
---
5555

5656
"Every bit helps, every bit matters."
57-
- PicoOraClaw
57+
- PicoOraClaw

0 commit comments

Comments
 (0)