feat: add options for adjusting LLM URL option#9964
Merged
Conversation
110b6ab to
075a778
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Adds richer configuration for the “LLM URL” backend so users can use OpenAI-compatible/self-hosted endpoints (e.g., Ollama) with an optional API token and adjustable sampling parameters, and persists those settings through config storage and UI.
Changes:
- Extend the LLM URL settings UI with API token + “Advanced Options” (temperature/topP/maxTokens) and persist them.
- Add URL-backend
maxTokenssupport in the main config service + tests. - Add helper utilities + unit tests for URL settings payloads and activation-state logic, plus smoke tests for persistence/deactivation.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/insomnia/src/ui/components/settings/llms/url.tsx | Adds API token + advanced parameter UI and uses new URL utilities when loading models/activating. |
| packages/insomnia/src/ui/components/settings/llms/url-utils.ts | Introduces URL helper utilities (schema, payload builders, activation disable logic, auth headers). |
| packages/insomnia/src/ui/components/settings/llms/url-utils.test.ts | Adds Vitest coverage for URL utilities. |
| packages/insomnia/src/ui/components/settings/ai-settings.tsx | Minor formatting-only arrow function cleanup. |
| packages/insomnia/src/main/llm-config-service.ts | Adds maxTokens to LLMConfig and parses it from plugin storage. |
| packages/insomnia/src/main/ipc/main.ts | Changes how MCP sampling request config is merged with stored model config. |
| packages/insomnia/src/main/tests/llm-config-service.test.ts | Adds tests covering URL numeric option parsing/saving. |
| packages/insomnia-smoke-test/tests/smoke/preferences-interactions.test.ts | Adds smoke tests for URL advanced option persistence and backend deactivation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
075a778 to
13d9ff4
Compare
13d9ff4 to
479e8d1
Compare
fiosman
approved these changes
Jun 2, 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.
Add ability to change parameters and use API key for self-hosted LLMs like from Ollama, or other cloud providers that have OpenAI compatible endpoints.