#!/usr/bin/env bash set -euo pipefail # Simple curl helper for streaming chat completions (SSE) # Usage: # scripts/curl_chat_stream.sh "Who was the 16th president of the United States?" # MODEL_ID=google/gemma-2b-it scripts/curl_chat_stream.sh "Hello!" SERVER_URL=${SERVER_URL:-http://localhost:8080} MODEL_ID=${MODEL_ID:-gemma-3-1b-it} PROMPT=${1:-"What is the capital of France?"} MAX_TOKENS=${MAX_TOKENS:-128} # Timeout controls (seconds) CONNECT_TIMEOUT=${CONNECT_TIMEOUT:-10} MAX_TIME=${MAX_TIME:-30} cat <