Document HTTP maintenance scope and remediation
This commit is contained in:
@@ -6,7 +6,8 @@ This is the canonical public HTTP contract for Scriptorium.
|
||||
|
||||
`POST /v1/runs` runs one prompt request and returns generated output,
|
||||
validation, and metadata. The service has no built-in authentication or
|
||||
authorization; deploy it behind appropriate network and authentication controls.
|
||||
authorization. Its maintenance scope is trusted hosts on a trusted network;
|
||||
see [HTTP deployment](operations.md#http-deployment-and-shutdown).
|
||||
|
||||
The service address and HTTP limits are configured as described in the
|
||||
[configuration reference](config.md). `serve` invocation is defined in the
|
||||
@@ -62,6 +63,8 @@ it is rejected with `400 artifact_not_allowed`. This lexical check does not
|
||||
resolve symlinks: the operating system follows symlinks inside the root,
|
||||
including ones that target outside it. Keep the root narrow and inaccessible to
|
||||
untrusted writers.
|
||||
Pathname whitespace is significant. File inputs must resolve to regular files;
|
||||
other file types are rejected as `400 artifact_read_failed`.
|
||||
|
||||
The optional `model` object accepts `endpoint`, `model`, `temperature`,
|
||||
`max_tokens`, `top_p`, `timeout_seconds`, `service_tier`,
|
||||
@@ -72,6 +75,9 @@ Explicit zero values for the numeric fields are overrides; zero
|
||||
`timeout_seconds` disables the per-attempt generation deadline only, retaining the
|
||||
request context and configured transport cap. The timeout layers are defined in
|
||||
the [PromptKit outbound integration contract](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/207677e9948dc5699073a4d6620d21139033c72d/docs/integrations/openai-compatible-chat.md#timeout-and-cancellation).
|
||||
JSON numbers in `extra_params`, including nested values, are passed without
|
||||
the HTTP decoder rounding them through floating-point conversion; provider
|
||||
parameter semantics remain owned by PromptKit and the provider.
|
||||
|
||||
Raw API-key values are not accepted. `api_key`, the removed `prompt_version`,
|
||||
and any other unknown field cause `400 invalid_json`. Prompt and profile IDs
|
||||
|
||||
Reference in New Issue
Block a user