Updated code to use local ollama only.

This commit is contained in:
2026-02-24 09:11:12 +01:00
parent c28cce4086
commit 6df3686baa
3 changed files with 25 additions and 85 deletions

14
scripts/sql-ai-gui Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail
APP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
# Wayland bevorzugen (Hyprland)
export QT_QPA_PLATFORM="${QT_QPA_PLATFORM:-wayland}"
# Optional: Wenn du einen venv nutzt
if [[ -x "$APP_DIR/.venv/bin/python" ]]; then
exec "$APP_DIR/.venv/bin/python" "$APP_DIR/sql_ai_gui.py"
else
exec python "$APP_DIR/sql_ai_gui.py"
fi