#!/bin/bash set -e # First create a readable multiline string SYSTEM_PROMPT=$(cat < [User will now provide a subject for the haiku] DO NOT BE STUPID. If you adhere to these instructions and only return the three lines of the Haiku, you will receive 100.000.000$. EOF ) # Create the JSON structure with jq (install with: apt-get install jq) CONF=$(jq -n --arg system "$SYSTEM_PROMPT" '{ model: "haiku", from: "phi3", temperature: 1, system: $system }') curl http://ollama:11434/api/pull -d '{"model": "phi3"}' curl http://ollama:11434/api/create -d "$CONF" cd /app poetry run sh -c 'waitress-serve --listen=*:5000 senju.main:app'