{"id":"yLrAqRQVaOr4iM68Dp52a","title":"Decision model endpoint test for 192.168.50.35:8080","language":"bash","tags":[],"content":"#!/usr/bin/env bash\n# Test whether the server on .35 actually speaks the decision-model contract\nKEY=\"sk-local\"\nBASE=\"http://192.168.50.35:8080\"\n\necho \"== 1. what is loaded ==\"\ncurl -s \"$BASE/v1/models\" -H \"Authorization: Bearer $KEY\"\necho\n\necho \"== 2. POST /v1/systemone: one state, all three question types ==\"\ncurl -s \"$BASE/v1/systemone\" \\\n  -H \"Authorization: Bearer $KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"hs-decide-1-flash\",\n    \"state\": {\n      \"query\": \"When is the team offsite?\",\n      \"documents\": {\n        \"D00\": \"The offsite moved from April 10 to April 17.\",\n        \"D01\": \"The team offsite is on April 10 in Denver.\"\n      }\n    },\n    \"questions\": {\n      \"latest\": {\"type\": \"choice\", \"instructions\": \"Which document gives the current offsite date?\", \"criteria\": {\"D00\": null, \"D01\": null}},\n      \"moved\": {\"type\": \"noul\", \"instructions\": \"Did the offsite date change?\"},\n      \"D00\": {\"type\": \"score\", \"instructions\": \"How well does document `documents.D00` answer `query`?\", \"criteria\": [\"about something else\", \"same topic, no help\", \"helps\", \"answers\"]}\n    }\n  }'\necho\n","created_at":"2026-11-13T19:45:05.961Z"}