Env port strings must be json.parsed to int; pin main site to 18220 so inherited MARQDO_SITE_PORT cannot steal the fixture bind. Co-authored-by: Cursor <cursoragent@cursor.com>
27 lines
889 B
Markdown
27 lines
889 B
Markdown
---
|
|
markup: occlusion
|
|
title: isolated execute MR-01 site
|
|
description: Dual-stream execute + short models for ADR 0009 gold sample.
|
|
import:
|
|
web: ext/web/web.mq.md
|
|
site: ./site.mq.md
|
|
sys: lib/sys.mq.md
|
|
json: lib/json.mq.md
|
|
---
|
|
|
|
# main
|
|
|
|
**port_s = > sys.env_get name="MARQDO_SITE_PORT"**
|
|
**port = 18220**
|
|
1. `port_s`
|
|
**port = > json.parse text=`port_s`**
|
|
2. *
|
|
**_ = 1**
|
|
|
|
**pg = > web.page title="isolated-execute"**
|
|
**app = > web.app page=`pg` host="127.0.0.1" port=`port`**
|
|
**app = > web.route app=`app` path="/v1/chat/completions" method="POST" fn="site.chat" request="json" response="sse-live" class="execute"**
|
|
**app = > web.route app=`app` path="/v1/models" method="GET" fn="site.models" request="query" response="json" class="short"**
|
|
**app = > web.route app=`app` path="/v1/ping" method="GET" fn="site.ping" request="query" response="json" class="control"**
|
|
> `app`.listen
|