#!/bin/bash
# Simple Qwen Consultation Script
# Usage: consult-qwen.sh "your question here"

set -euo pipefail

QUESTION="${1:-}"

if [[ -z "$QUESTION" ]]; then
    echo "Usage: $0 \"your question\""
    exit 1
fi

echo "=== Consulting Qwen ==="
echo "Question: $QUESTION"
echo ""
echo "Qwen's Response:"
echo "---"

# Run Qwen with the question
echo "$QUESTION" | timeout 30 qwen -p - 2>&1
