Skip to content

docs: align serving docs with current APIs - #3366

Open
localai-org-maint-bot wants to merge 4 commits into
mudler:mainfrom
localai-org-maint-bot:docs/source-alignment-20261001
Open

localai-org-maint-bot wants to merge 4 commits into
mudler:mainfrom
localai-org-maint-bot:docs/source-alignment-20261001

Conversation

@localai-org-maint-bot

Copy link
Copy Markdown
Collaborator

Row

Documentation repair tracked by ISSUE-LOCAL-01M3TPN0QZ8856GY1MHN2TKNHX and .agents/specs/docs-server-surface-refresh.md. No model or engine lifecycle transition.

Before starting

  • Started from upstream main at fce36733bad6 in a separate worktree.
  • Checked open fork PRs. ABI 30 and benchmark-tool documentation are separate work and stay out of scope.
  • One PR carries the committed scope, public documentation, and verification record.
  • Checked route registration in api_server.cpp, callback wiring in server_main.cpp, completion response builders and validators, EOS configuration readers, and their existing tests.

What changed

The server reference omitted shipped decision endpoints and incorrectly said HTTP responses omit prompt log probabilities. Document their registration conditions, response fields, and request limits. Link the usage page to the detailed reference. Explain EOS fallback precedence and add Tev1 news linking its setup and validation limits.

Evidence

  • scripts/agent-preflight.sh passes. It does not pass on the base; see Honest gaps.
  • CPU-only focused checks: README structure, site navigation, changed local links and anchors, agent records, commit style and trailers, and git diff --check.
  • python3 -m unittest tests.scripts.test_check_readme_structure: 19 tests pass.
  • python3 scripts/check-tree-compiles.py --base fce36733b: no C++ source, header, or build file in scope.
  • Public docs change only their owned user-facing facts.

Independent review checked the prose against code and existing tests. Scratch mutations of a link and a heading failed the scoped checker and restored byte-for-byte.

Speed claims

  • This PR makes no speed claim. Runtime code, GPU support claims, and benchmark values are unchanged.

Honest gaps

The operator preflight exits 1 with 51 failed checks and 14 skips, including existing repository drift and missing Alpine prerequisites. Its range checks use stale origin/main; style, trailer, and compilation-scope checks pass against the actual base fce36733b. The benchmark-index checker already reports 16 orphan detail files. This PR does not claim a green full preflight, new runtime parity, or GPU verification. Its documentation claims were checked against current source and existing tests.

FOLLOWING_AGENTS_PROTOCOL

Following-Agents-Protocol: true
AI-Assisted: true
Assisted-by: Codex:GPT-6 [Codex]

The server reference omits shipped routes and contradicts the HTTP response builders. Record a CPU-only documentation scope before implementation for ISSUE-LOCAL-01M3TPN0QZ8856GY1MHN2TKNHX.

FOLLOWING_AGENTS_PROTOCOL

Following-Agents-Protocol: true
AI-Assisted: true
Assisted-by: Codex:GPT-6 [Codex]
The guide still says HTTP cannot return prompt log probabilities.
Describe the response fields, decision routes, and EOS fallback from
current source. Link the Tev1 recipe from the news section so readers
can find the new decision path and its verification limits.

This is the public prose repair scoped by
ISSUE-LOCAL-01M3TPN0QZ8856GY1MHN2TKNHX. No runtime or benchmark changes
are included. README, site, and changed-link checks pass. The benchmark
index retains the same 16 orphan-file failures as the untouched base.

FOLLOWING_AGENTS_PROTOCOL

Following-Agents-Protocol: true
AI-Assisted: true
Assisted-by: Codex:GPT-6 [Codex]
The duplicate EOS prose says an absent generation config adds nested IDs.
The outer config takes precedence, so that claim can misstate the stop set.
Link the authoritative reference while retaining primary and secondary IDs
and the effect of ignore_eos in the usage guide.

Tracks ISSUE-LOCAL-01M3TPN0QZ8856GY1MHN2TKNHX.
The operator reruns full preflight for this documentation repair.
This helper runs focused checks without repeating that expensive suite.

FOLLOWING_AGENTS_PROTOCOL

Following-Agents-Protocol: true
AI-Assisted: true
Assisted-by: Codex:GPT-6 [Codex]
Record the reviewed server-guide repair and its CPU-only checks for
ISSUE-LOCAL-01M3TPN0QZ8856GY1MHN2TKNHX. Preserve the existing GPU and
runtime-validation limits.

The full preflight fails on existing repository and environment checks.
This documentation-only handoff uses source, structure, link, and exact-base
checks. It is not a green integration-readiness result or authorization to merge.

FOLLOWING_AGENTS_PROTOCOL

Following-Agents-Protocol: true
AI-Assisted: true
Assisted-by: Codex:GPT-6 [Codex]

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant