Repository navigation
Include /v1 in copied API endpoint URLs - #185
Merged
Noah-Tervalon-Nvidia merged 1 commit intoOct 29, 2026
Merged
Conversation
Signed-off-by: Seth Schneider <[email protected]>
Noah-Tervalon-Nvidia
self-requested a review
October 29, 2026 19:35
Noah-Tervalon-Nvidia
left a comment
Collaborator
There was a problem hiding this comment.
Is this really something that should belong to us?
Noah-Tervalon-Nvidia
approved these changes
Oct 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog title
Copy API endpoints with /v1 included
Changelog body
/v1when displayed or copied, so they can be pasted directly into Hermes and other clients that expect an OpenAI-compatible base URL./v1for native Ollama clients.Bumps
Summary
PAIR currently copies an endpoint such as
http://127.0.0.1:11434, requiring users to append/v1before pasting it into Hermes or another OpenAI-compatible client. The endpoint list and engine copy buttons now returnhttp://127.0.0.1:11434/v1, with matching display text and tooltip.The existing URL assertion and README/getting-started examples are updated, including removal of the extra
/v1from requests built on the copied base URL.Scope
Desktop URL formatting, its existing test, and user documentation. No Go services, HTTP routes, JSON-RPC contracts, or dependencies change. The services suite minor bump records the user-visible change under the repository's versioning policy; all service binary bumps remain
none.Test plan
Validated on Windows x64 with Node.js 26.12.1, on an isolated branch based on
develop(c0d2b62):npm run typecheck— passed.npm run lint— passed without warnings.npm run dead-code:check— passed.npm run test:unit— 26 packaging tests and 280 unit tests passed; 2 existing tests skipped.npm run service-contracts:check— passed.npm run verify:build-scripts— passed.node scripts/spdx-headers.mjs— passed.git diff --check— passed.Reviewed both copy consumers and the documented request paths. No live Electron/Hermes smoke test was performed.
Risk
Clients using Ollama's native API, or clients that append
/v1themselves, need the proxy URL without the trailing/v1. The guide documents this distinction. Proxy routing and listener behavior are unchanged.Checklist
git commit -s), certifying the Developer Certificate of Origin.services/versions.jsonis written by automation.