This commit resolves all outstanding issues with the AI Insights feature.
- Corrects the transcript formatting logic in to properly handle the database JSON structure, ensuring the AI receives the correct context.
- Fixes the Gemini API client by using the correct model name ('gemini-2.0-flash') and the proper client initialization.
- Updates to securely pass the API key as an environment variable to the container.
- Cleans up the codebase by removing temporary debugging endpoints.
- Adds script for programmatic updates.
- Updates documentation with troubleshooting insights from the implementation process.
17 lines
621 B
Bash
17 lines
621 B
Bash
#!/bin/sh
|
|
|
|
# Sicherstellen, dass der Config-Ordner existiert, damit Docker ihn als Ordner und nicht als Datei mountet
|
|
mkdir -p .gemini-config
|
|
|
|
echo "Räume alte 'gemini-session' auf, falls vorhanden..."
|
|
sudo docker rm -f gemini-session > /dev/null 2>&1
|
|
|
|
echo "Starte eine neue, interaktive Gemini-Session..."
|
|
# --env-file .env lädt deine Variablen automatisch
|
|
# -v .../.gemini-config:/root/.config sorgt dafür, dass deine Settings (Modellwahl) gespeichert bleiben
|
|
sudo docker run -it --rm \
|
|
--env-file .env \
|
|
-v "$(pwd):/app" \
|
|
-v "$(pwd)/.gemini-config:/root/.config" \
|
|
--name gemini-session \
|
|
gemini-dev-env |