$HOME/.config/fabric/.env
======
DEFAULT_VENDOR=Ollama
DEFAULT_MODEL=qwq:latest
OLLAMA_API_URL=http://example.wireguard:12345
YOUTUBE_API_KEY=AIxb12345B0pQ8jL2nRt3xD5xH2wNabCd1dY-Z
$HOME/bin/ytext
======
#!/bin/bash
FABRIC_DIR="$HOME/.config/fabric"
url="$1"
options="${@:2}"
fabric -sp extract_wisdom -y "$url" $options && echo
session_name=$(echo "$options" | grep -oE -e "--session[ =][^ ]+" | sed -E 's/--session[ =]//')
if [ -n "$session_name" ];
then
echo
echo "Further prompts:"
echo "fabric --session $session_name"
echo
fi
# Store the transcript
ytext 'https://www.youtube.com/watch?v=example' --session example
# Investigate further
fabric --session example "What is ..."
Top comments (0)