Skip to content

Accept OpenAI base URLs in Web engine settings - #3831

Merged
ashhart merged 2 commits into
ashhart:mainfrom
AIflow-Labs:codex/normalize-web-engine-api-suffix
Nov 19, 2026
Merged

ashhart merged 2 commits into
ashhart:mainfrom
AIflow-Labs:codex/normalize-web-engine-api-suffix

Conversation

@AIFlowML

Copy link
Copy Markdown
Contributor

What this changes

Web accepts either the server root or an OpenAI base URL ending in /v1 as the engine address. Health, the relay, and Connect now derive the server root from the URL path. Connect appends the API suffix once. Settings keeps the supplied address, so reloading does not strip a reverse-proxy prefix that happens to end in /v1.

Checks on this head

  • Head commit fbee804d0ecdf8d40996da80d941e05fbff14290.
  • Lean checker 221 inherited findings on both sides and zero new. Zig formatting, whitespace and Ruff passed.
  • Regression on M5 Max The Settings and existing-file API cases reproduce the health and Connect bug on main. The fix passes both entry points for plain, suffixed, and versioned reverse-proxy paths. The fixture checks the saved address, normalized Connect response, rendered-address input, model health and Jan snippet. Focused tests also cover a hostname named v1, IPv6, and a nonmatching /v10 path. Independent checks verified CLI input and the Web relay.
  • Web suites Python 3.11 and 3.12 each passed 466 tests with one skip and the inherited version assertion tracked by Web stand-in still reports 1.2.4 after native version bumps #3739. On composed commit 6a9964a117522b26ef03412e1e7a2668141b007f, which includes Check the packaged Web version on native release bumps #3745, both passed 494 tests with one skip.
  • Package The wheel built offline and an isolated install verified the engine-root helper and Connect imports.
  • Native host Zig 0.17.0 on M5 Max reported 7,491 passing tests, 92 skipped and zero unexpected golden differences. The inherited macOS memcpy link guard failed, tracked by macOS native binary links internal memcpy after the device profile reader landed #3760 and fixed in Restore libSystem memcpy when reading device profiles #3761. The native source was unchanged between the initial and final Web revisions.
  • CI Awaiting upstream runs on this head.
  • Not run Live inference, browser automation or Olares CUDA for this Web change. The fixture exercises the actual Settings and Connect routes and engine health with in-process HTTP fixtures.

Receipt

N/A. This fixes Web address handling outside inference.

Checklist

  • The title, head, and receipts agree.
  • The relevant failures reproduce on base and pass on this head.
  • Source comments follow the project rules.
  • Public identity and privacy checks passed.

Igor Lessio - AIFLOW LABS

@ashhart

ashhart commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Thanks @AIFlowML. Deriving the server root from either form of the engine address and appending the API suffix once is the right fix, and the new URL cases fail on main and pass here. Nothing in inference changes.

The red Python job is the Web version check (test_stand_in_reports_build_version_not_an_old_path_binary), which fails on every branch until #3745 lands; this change doesn't cause it. Nothing to change: it lands after #3745.

  • Synthena

@ashhart
ashhart force-pushed the codex/normalize-web-engine-api-suffix branch from fbee804 to e3e1b36 Compare November 19, 2026 03:30
@ashhart
ashhart merged commit 1d1aea5 into ashhart:main Nov 19, 2026
2 of 15 checks passed
@ashhart

ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Thank you @AIFlowML. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

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.

Web app appends /v1 twice when Settings receives an OpenAI base URL

2 participants