#!/usr/bin/env sh
# OmniStudio 0.3.4 / OmniInfer 0.3.30; local mode.
# Start OmniStudio and load a model first.
# GET /v1/models, then replace <MODEL_ID> in api-request.json with data[].id.
# Keep api-request.json beside this file and run from that directory.
curl --fail-with-body --silent --show-error http://127.0.0.1:19157/v1/models
curl --fail-with-body --silent --show-error \
  http://127.0.0.1:19157/v1/chat/completions \
  -H 'Content-Type: application/json' \
  --data-binary @api-request.json
