Spaces:
Running
Running
Sync from felladrin/MiniSearch@ad583e0
Browse filesFiles changed (14)
- .env.example+3
- changelog.md+1
- client/components/App/App.test.tsx+1
- client/modules/config.test.ts+1
- client/modules/config.ts+2
- client/modules/pubSub.test.ts+5-2
- client/modules/settings.test.ts+1
- client/modules/textGeneration.responsePersistence.test.ts+10
- client/modules/textGeneration.ts+1-1
- client/modules/textGenerationUtilities.test.ts+36-17
- client/modules/textGenerationUtilities.ts+14-8
- client/modules/textGenerationWithInternalApi.ts+1-1
- client/modules/textGenerationWithOpenAi.ts+1-1
- docs/configuration.md+4-1
18 unmodified lines19202122232418 unmodified lines# The model for the internal OpenAI compatible API.INTERNAL_OPENAI_COMPATIBLE_API_MODEL=""# The reasoning effort for the internal OpenAI compatible API, sent as `reasoning_effort` (e.g. "none", "low", "medium", "high"). Leave blank to use the API's default.INTERNAL_OPENAI_COMPATIBLE_API_REASONING_EFFORT=""18 unmodified lines19202122232425262718 unmodified lines# The model for the internal OpenAI compatible API.INTERNAL_OPENAI_COMPATIBLE_API_MODEL=""# The context window, in tokens, of the internal OpenAI compatible API's models. The browser sizes the search results, page excerpts, chat history and the answer's `max_tokens` from it. Leave blank for 131072 (128K).INTERNAL_OPENAI_COMPATIBLE_API_CONTEXT_LENGTH=""# The reasoning effort for the internal OpenAI compatible API, sent as `reasoning_effort` (e.g. "none", "low", "medium", "high"). Leave blank to use the API's default.INTERNAL_OPENAI_COMPATIBLE_API_REASONING_EFFORT=""
10 unmodified lines11121314151610 unmodified lines## 2026-11-25- Admins can now set the reasoning effort of the instance's own AI. The new `INTERNAL_OPENAI_COMPATIBLE_API_REASONING_EFFORT` variable is sent as `reasoning_effort` on every request to the internal OpenAI-compatible API, for every model in the list, so a reasoning model can be told to think less (or not at all) and answer faster. Left empty, nothing is sent and the API keeps its own default.- Follow-up questions are now shown when the main AI answer came back empty. The first follow-up question and its answer used to be hidden for good, "Copy conversation" left them out, and they could not be regenerated. A last answer that came back empty now shows "No response" with its Re-generate button, instead of showing nothing to retry from.10 unmodified lines1112131415161710 unmodified lines## 2026-11-25- Answers from the instance's own AI are no longer cut short. The browser sized every request to it for a 4096-token window, so with search results and page excerpts in the prompt the answer often got fewer than 2048 tokens, and the server capped it at 2048 anyway; a reasoning model could spend all of that thinking. The window now defaults to 131072 tokens (128K) and can be set with `INTERNAL_OPENAI_COMPATIBLE_API_CONTEXT_LENGTH`, and the server's cap, `MODEL_DEFAULT_MAX_TOKENS`, now defaults to 8192. With the larger window, more of each page read also goes into the prompt.- Admins can now set the reasoning effort of the instance's own AI. The new `INTERNAL_OPENAI_COMPATIBLE_API_REASONING_EFFORT` variable is sent as `reasoning_effort` on every request to the internal OpenAI-compatible API, for every model in the list, so a reasoning model can be told to think less (or not at all) and answer faster. Left empty, nothing is sent and the API keeps its own default.- Follow-up questions are now shown when the main AI answer came back empty. The first follow-up question and its answer used to be hidden for good, "Copy conversation" left them out, and they could not be regenerated. A last answer that came back empty now shows "No response" with its Re-generate button, instead of showing nothing to retry from.
27 unmodified lines28293031323327 unmodified lineswllamaDefaultGpuModelId: "gemma-3-4b",internalApiEnabled: false,internalApiName: "Internal API",defaultInferenceType: "browser",searchToken: "a".repeat(64),parentWindowOrigins: ["https://huggingface.co"],27 unmodified lines2829303132333427 unmodified lineswllamaDefaultGpuModelId: "gemma-3-4b",internalApiEnabled: false,internalApiName: "Internal API",internalApiContextLength: 131072,defaultInferenceType: "browser",searchToken: "a".repeat(64),parentWindowOrigins: ["https://huggingface.co"],
10 unmodified lines11121314151610 unmodified lineswllamaDefaultGpuModelId: "some-gpu-model",internalApiEnabled: true,internalApiName: "Custom LLM",defaultInferenceType: "internal",searchToken: "a".repeat(64),parentWindowOrigins: ["https://huggingface.co"],10 unmodified lines1112131415161710 unmodified lineswllamaDefaultGpuModelId: "some-gpu-model",internalApiEnabled: true,internalApiName: "Custom LLM",internalApiContextLength: 131072,defaultInferenceType: "internal",searchToken: "a".repeat(64),parentWindowOrigins: ["https://huggingface.co"],
7 unmodified lines891011121320 unmodified lines3435363738397 unmodified linesimport {DEFAULT_INFERENCE_TYPE,DEFAULT_INTERNAL_API_NAME,DEFAULT_WLLAMA_GPU_MODEL_ID,DEFAULT_WLLAMA_MODEL_ID,20 unmodified lineswllamaDefaultGpuModelId: DEFAULT_WLLAMA_GPU_MODEL_ID,internalApiEnabled: false,internalApiName: DEFAULT_INTERNAL_API_NAME,defaultInferenceType: DEFAULT_INFERENCE_TYPE,searchToken: "",parentWindowOrigins: [],7 unmodified lines89101112131420 unmodified lines353637383940417 unmodified linesimport {DEFAULT_INFERENCE_TYPE,DEFAULT_INTERNAL_API_CONTEXT_LENGTH,DEFAULT_INTERNAL_API_NAME,DEFAULT_WLLAMA_GPU_MODEL_ID,DEFAULT_WLLAMA_MODEL_ID,20 unmodified lineswllamaDefaultGpuModelId: DEFAULT_WLLAMA_GPU_MODEL_ID,internalApiEnabled: false,internalApiName: DEFAULT_INTERNAL_API_NAME,internalApiContextLength: DEFAULT_INTERNAL_API_CONTEXT_LENGTH,defaultInferenceType: DEFAULT_INFERENCE_TYPE,searchToken: "",parentWindowOrigins: [],
161 unmodified lines16216316416516616716816917017163 unmodified lines235236237238239240161 unmodified linesgetDefaultChatCompletionCreateParamsStreaming,getEffectiveContextSize,} = await import("./textGenerationUtilities");expect(getDefaultChatCompletionCreateParamsStreaming([]).max_tokens).toBe(defaultSettings.openAiContextLength,);expect(getEffectiveContextSize()).toBe(defaultSettings.openAiContextLength);});});63 unmodified lineswllamaDefaultGpuModelId: "gemma-3-4b",internalApiEnabled: false,internalApiName: "Internal API",defaultInferenceType: "openai",searchToken: "a".repeat(64),parentWindowOrigins: ["https://huggingface.co"],161 unmodified lines16216316416516616716816917017117217363 unmodified lines237238239240241242243161 unmodified linesgetDefaultChatCompletionCreateParamsStreaming,getEffectiveContextSize,} = await import("./textGenerationUtilities");expect((await getDefaultChatCompletionCreateParamsStreaming([])).max_tokens,).toBe(defaultSettings.openAiContextLength);expect(await getEffectiveContextSize()).toBe(defaultSettings.openAiContextLength,);});});63 unmodified lineswllamaDefaultGpuModelId: "gemma-3-4b",internalApiEnabled: false,internalApiName: "Internal API",internalApiContextLength: 131072,defaultInferenceType: "openai",searchToken: "a".repeat(64),parentWindowOrigins: ["https://huggingface.co"],
18 unmodified lines19202122232418 unmodified lineswllamaDefaultGpuModelId: "gemma-3-4b",internalApiEnabled: false,internalApiName: "Internal API",defaultInferenceType: "browser",searchToken: "a".repeat(64),parentWindowOrigins: ["https://huggingface.co"],18 unmodified lines1920212223242518 unmodified lineswllamaDefaultGpuModelId: "gemma-3-4b",internalApiEnabled: false,internalApiName: "Internal API",internalApiContextLength: 131072,defaultInferenceType: "browser",searchToken: "a".repeat(64),parentWindowOrigins: ["https://huggingface.co"],
17 unmodified lines18192021222317 unmodified linesvi.mock("./logEntries", () => ({ addLogEntry: vi.fn() }));vi.mock("./notifications", () => ({ showAiCompleteNotification: vi.fn() }));vi.mock("./pageContent", () => ({17 unmodified lines1819202122232425262728293031323317 unmodified linesvi.mock("./logEntries", () => ({ addLogEntry: vi.fn() }));// The internal API sizes its budgets from /api/config; `fetch` below only// answers /inference.vi.mock("./config", async (importOriginal) => {const actual = await importOriginal<typeof import("./config")>();return {...actual,getConfig: vi.fn(() => Promise.resolve(actual.FALLBACK_CONFIG)),};});vi.mock("./notifications", () => ({ showAiCompleteNotification: vi.fn() }));vi.mock("./pageContent", () => ({
395 unmodified lines396397398399400401402395 unmodified lineslet response = "";try {const contextSize = getEffectiveContextSize();// The newest message is the question being answered. It always goes out,// so the one case with no usable prompt is a question larger than the// whole window; that fails here, before anything is generated.395 unmodified lines396397398399400401402395 unmodified lineslet response = "";try {const contextSize = await getEffectiveContextSize();// The newest message is the question being answered. It always goes out,// so the one case with no usable prompt is a question larger than the// whole window; that fails here, before anything is generated.
15 unmodified lines161718192021307 unmodified lines32933033133233333433533633733833934034134234334434534634734834935035135235335416 unmodified lines37137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441515 unmodified linesreasoningStartMarker?: string;reasoningEndMarker?: string;},}));vi.mock("./pubSub", () => ({307 unmodified lines});describe("getEffectiveContextSize", () => {it("follows the configured context on the OpenAI-compatible backend", () => {state.settings = { inferenceType: "openai", openAiContextLength: 32768 };expect(getEffectiveContextSize()).toBe(32768);});it("stays at the default on every other backend, whatever the setting says", () => {for (const inferenceType of ["browser", "horde", "internal"]) {state.settings = { inferenceType, openAiContextLength: 32768 };expect(getEffectiveContextSize()).toBe(4096);}});it("falls back to the default when the setting cannot size a window", () => {// A cleared numeric input can persist as an empty string.for (const openAiContextLength of [undefined, 0, -1, "" as never]) {state.settings = { inferenceType: "openai", openAiContextLength };expect(getEffectiveContextSize()).toBe(4096);}});});16 unmodified linesstate.settings = { inferenceType: "openai", openAiContextLength: 4096 };});it("leaves the prompt room in the window instead of asking for all of it", () => {const messages = getDefaultChatMessages(searchResultsOf(2500));const promptTokens = countPromptTokens(messages);expect(promptTokens).toBeGreaterThan(2000);const { max_tokens } =getDefaultChatCompletionCreateParamsStreaming(messages);expect(promptTokens + max_tokens).toBeLessThanOrEqual(4096);expect(max_tokens).toBeGreaterThan(1000);});it("still asks for a short answer when the prompt nearly fills the window", () => {const messages = getDefaultChatMessages(searchResultsOf(4090));expect(getDefaultChatCompletionCreateParamsStreaming(messages).max_tokens,).toBe(minimumOutputTokens);});it("sizes the budget from the configured context on the OpenAI-compatible backend", () => {state.settings = { inferenceType: "openai", openAiContextLength: 32768 };const messages = getDefaultChatMessages(searchResultsOf(8000));const { max_tokens } =getDefaultChatCompletionCreateParamsStreaming(messages);expect(max_tokens).toBeGreaterThan(20000);expect(countPromptTokens(messages) + max_tokens).toBeLessThanOrEqual(32768);});it("sizes the budget from the default context on the internal API", () => {state.settings = { inferenceType: "internal", openAiContextLength: 32768 };const messages = getDefaultChatMessages(searchResultsOf(1000));const { max_tokens } =getDefaultChatCompletionCreateParamsStreaming(messages);expect(countPromptTokens(messages) + max_tokens).toBeLessThanOrEqual(4096);});});15 unmodified lines16171819202122232425262728307 unmodified lines33633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736816 unmodified lines38538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343415 unmodified linesreasoningStartMarker?: string;reasoningEndMarker?: string;},internalApiContextLength: 131072,}));vi.mock("./config", () => ({getConfig: async () => ({internalApiContextLength: state.internalApiContextLength,}),}));vi.mock("./pubSub", () => ({307 unmodified lines});describe("getEffectiveContextSize", () => {it("follows the configured context on the OpenAI-compatible backend", async () => {state.settings = { inferenceType: "openai", openAiContextLength: 32768 };expect(await getEffectiveContextSize()).toBe(32768);});it("follows the server's context length on the internal API, whatever the setting says", async () => {state.settings = { inferenceType: "internal", openAiContextLength: 4096 };state.internalApiContextLength = 65536;expect(await getEffectiveContextSize()).toBe(65536);});it("stays at the default on the in-browser and AI Horde backends, whatever the setting says", async () => {for (const inferenceType of ["browser", "horde"]) {state.settings = { inferenceType, openAiContextLength: 32768 };expect(await getEffectiveContextSize()).toBe(4096);}});it("falls back to the default when the setting cannot size a window", async () => {// A cleared numeric input can persist as an empty string.for (const openAiContextLength of [undefined, 0, -1, "" as never]) {state.settings = { inferenceType: "openai", openAiContextLength };expect(await getEffectiveContextSize()).toBe(4096);}});});16 unmodified linesstate.settings = { inferenceType: "openai", openAiContextLength: 4096 };});it("leaves the prompt room in the window instead of asking for all of it", async () => {const messages = getDefaultChatMessages(searchResultsOf(2500));const promptTokens = countPromptTokens(messages);expect(promptTokens).toBeGreaterThan(2000);const { max_tokens } =await getDefaultChatCompletionCreateParamsStreaming(messages);expect(promptTokens + max_tokens).toBeLessThanOrEqual(4096);expect(max_tokens).toBeGreaterThan(1000);});it("still asks for a short answer when the prompt nearly fills the window", async () => {const messages = getDefaultChatMessages(searchResultsOf(4090));expect((await getDefaultChatCompletionCreateParamsStreaming(messages)).max_tokens,).toBe(minimumOutputTokens);});it("sizes the budget from the configured context on the OpenAI-compatible backend", async () => {state.settings = { inferenceType: "openai", openAiContextLength: 32768 };const messages = getDefaultChatMessages(searchResultsOf(8000));const { max_tokens } =await getDefaultChatCompletionCreateParamsStreaming(messages);expect(max_tokens).toBeGreaterThan(20000);expect(countPromptTokens(messages) + max_tokens).toBeLessThanOrEqual(32768);});it("sizes the budget from the server's context length on the internal API", async () => {state.settings = { inferenceType: "internal", openAiContextLength: 4096 };state.internalApiContextLength = 131072;const messages = getDefaultChatMessages(searchResultsOf(1000));const { max_tokens } =await getDefaultChatCompletionCreateParamsStreaming(messages);expect(max_tokens).toBeGreaterThan(100000);expect(countPromptTokens(messages) + max_tokens).toBeLessThanOrEqual(131072,);});});
123437 unmodified lines42434445464748498 unmodified lines5859606162636465151 unmodified lines21721821922022122222352 unmodified lines2762772782792802812822837 unmodified lines291292293294295296297298299300301302import gptTokenizer from "gpt-tokenizer";import { addLogEntry } from "./logEntries";import { allocatePageExcerpts } from "./pageExcerptAllocation";import type {37 unmodified lines* out of the prompt (page excerpts, chat history) measures against this one* number, so the parts are sized for the same window and fit together.*/export function getEffectiveContextSize() {const { inferenceType, openAiContextLength } = getSettings();// `openAiContextLength` describes one backend's endpoint. Every other one// runs at `defaultContextSize` (the browser models are built with it), and// the setting outlives a switch between them, so it only counts where it8 unmodified linesreturn defaultContextSize;}function getPageContentTokenBudget() {return Math.floor(getEffectiveContextSize() * pageContentTokenBudgetRatio);}let workerFactory = () =>151 unmodified linesconst pageContents = getPageContents();const excerpts = await allocatePageExcerptsAsync(searchResults.map(([, , url]) => pageContents[url] ?? ""),getPageContentTokenBudget(),);const relevanceTags = getRelevanceTags(searchResults);52 unmodified lines* uses the same tokenizer as the other prompt budgets; the model's own may* differ a little either way.*/function getMaxOutputTokens(messages: ChatMessage[]) {const contextSize = getEffectiveContextSize();const promptTokens = messages.reduce((total, message) =>total +7 unmodified lines);}export function getDefaultChatCompletionCreateParamsStreaming(messages: ChatMessage[],) {return {stream: true,max_tokens: getMaxOutputTokens(messages),temperature: 0.35,top_p: 1.0,min_p: 0.0,1234537 unmodified lines43444546474849505152538 unmodified lines62636465666768697071151 unmodified lines22322422522622722822952 unmodified lines2822832842852862872882897 unmodified lines297298299300301302303304305306307308import gptTokenizer from "gpt-tokenizer";import { getConfig } from "./config";import { addLogEntry } from "./logEntries";import { allocatePageExcerpts } from "./pageExcerptAllocation";import type {37 unmodified lines* out of the prompt (page excerpts, chat history) measures against this one* number, so the parts are sized for the same window and fit together.*/export async function getEffectiveContextSize() {const { inferenceType, openAiContextLength } = getSettings();if (inferenceType === "internal") {return (await getConfig()).internalApiContextLength;}// `openAiContextLength` describes one backend's endpoint. Every other one// runs at `defaultContextSize` (the browser models are built with it), and// the setting outlives a switch between them, so it only counts where it8 unmodified linesreturn defaultContextSize;}async function getPageContentTokenBudget() {return Math.floor((await getEffectiveContextSize()) * pageContentTokenBudgetRatio,);}let workerFactory = () =>151 unmodified linesconst pageContents = getPageContents();const excerpts = await allocatePageExcerptsAsync(searchResults.map(([, , url]) => pageContents[url] ?? ""),await getPageContentTokenBudget(),);const relevanceTags = getRelevanceTags(searchResults);52 unmodified lines* uses the same tokenizer as the other prompt budgets; the model's own may* differ a little either way.*/async function getMaxOutputTokens(messages: ChatMessage[]) {const contextSize = await getEffectiveContextSize();const promptTokens = messages.reduce((total, message) =>total +7 unmodified lines);}export async function getDefaultChatCompletionCreateParamsStreaming(messages: ChatMessage[],) {return {stream: true,max_tokens: await getMaxOutputTokens(messages),temperature: 0.35,top_p: 1.0,min_p: 0.0,
102 unmodified lines103104105106107108109102 unmodified lines"Content-Type": "application/json",},body: JSON.stringify({...getDefaultChatCompletionCreateParamsStreaming(messages),messages,}),signal,102 unmodified lines103104105106107108109102 unmodified lines"Content-Type": "application/json",},body: JSON.stringify({...(await getDefaultChatCompletionCreateParamsStreaming(messages)),messages,}),signal,
64 unmodified lines6566676869707164 unmodified linesapiKey: settings.openAiApiKey,});const params = getDefaultChatCompletionCreateParamsStreaming(messages);let effectiveModel = settings.openAiApiModel;let availableModels: { id: string }[] = [];64 unmodified lines6566676869707164 unmodified linesapiKey: settings.openAiApiKey,});const params = await getDefaultChatCompletionCreateParamsStreaming(messages);let effectiveModel = settings.openAiApiModel;let availableModels: { id: string }[] = [];
42 unmodified lines434445464748496 unmodified lines5657585960618 unmodified lines70717273747542 unmodified lines| `MODEL_MAX_BACKOFF_MS` | `5000` | Maximum retry backoff in milliseconds || `MODEL_REQUEST_TIMEOUT_MS` | `30000` | Model request timeout in milliseconds || `MODEL_MAX_CONCURRENT_REQUESTS` | `10` | Maximum number of simultaneous model requests || `MODEL_DEFAULT_MAX_TOKENS` | `2048` | Default maximum number of generated tokens || `MODEL_TEMPERATURE` | `0.7` | Model sampling temperature || `MODEL_TOP_P` | `0.9` | Model nucleus-sampling probability |6 unmodified lines| `INTERNAL_OPENAI_COMPATIBLE_API_BASE_URL` | `''` | Base URL of your API (e.g., `https://api.internal.company.com/v1`) || `INTERNAL_OPENAI_COMPATIBLE_API_KEY` | `''` | API key for authentication || `INTERNAL_OPENAI_COMPATIBLE_API_MODEL` | `''` | Model ID, or a comma-separated list (random model if empty) || `INTERNAL_OPENAI_COMPATIBLE_API_REASONING_EFFORT` | `''` | Sent as `reasoning_effort` on every request (API default if empty) || `INTERNAL_OPENAI_COMPATIBLE_API_NAME` | `Internal API` | Display name shown in UI |8 unmodified lines`INTERNAL_OPENAI_COMPATIBLE_API_MODEL` takes several models, separated by commas, in order of preference (`"llama-3.1-8b,qwen-3-8b"`). When a model fails before sending the first token, the server moves to the next one, and after the last one it starts the list over once, up to 5 attempts in all. So a single model gets one retry. Left empty, each request picks a random model from the API's `/models` list, which includes every model the API serves.`INTERNAL_OPENAI_COMPATIBLE_API_REASONING_EFFORT` sets the `reasoning_effort` field of every request to the API, for every model in the list. The value is passed through as written, because providers accept different values (`none`, `minimal`, `low`, `medium`, `high`, `xhigh`); one the API rejects fails the request, and the error shows in the server log. Left empty, the field is not sent and the API applies its own default.### Default Behavior42 unmodified lines434445464748496 unmodified lines565758596061628 unmodified lines717273747576777842 unmodified lines| `MODEL_MAX_BACKOFF_MS` | `5000` | Maximum retry backoff in milliseconds || `MODEL_REQUEST_TIMEOUT_MS` | `30000` | Model request timeout in milliseconds || `MODEL_MAX_CONCURRENT_REQUESTS` | `10` | Maximum number of simultaneous model requests || `MODEL_DEFAULT_MAX_TOKENS` | `8192` | Default maximum number of generated tokens || `MODEL_TEMPERATURE` | `0.7` | Model sampling temperature || `MODEL_TOP_P` | `0.9` | Model nucleus-sampling probability |6 unmodified lines| `INTERNAL_OPENAI_COMPATIBLE_API_BASE_URL` | `''` | Base URL of your API (e.g., `https://api.internal.company.com/v1`) || `INTERNAL_OPENAI_COMPATIBLE_API_KEY` | `''` | API key for authentication || `INTERNAL_OPENAI_COMPATIBLE_API_MODEL` | `''` | Model ID, or a comma-separated list (random model if empty) || `INTERNAL_OPENAI_COMPATIBLE_API_CONTEXT_LENGTH` | `131072` | Context window of the API's models, in tokens || `INTERNAL_OPENAI_COMPATIBLE_API_REASONING_EFFORT` | `''` | Sent as `reasoning_effort` on every request (API default if empty) || `INTERNAL_OPENAI_COMPATIBLE_API_NAME` | `Internal API` | Display name shown in UI |8 unmodified lines`INTERNAL_OPENAI_COMPATIBLE_API_MODEL` takes several models, separated by commas, in order of preference (`"llama-3.1-8b,qwen-3-8b"`). When a model fails before sending the first token, the server moves to the next one, and after the last one it starts the list over once, up to 5 attempts in all. So a single model gets one retry. Left empty, each request picks a random model from the API's `/models` list, which includes every model the API serves.`INTERNAL_OPENAI_COMPATIBLE_API_CONTEXT_LENGTH` is the window the browser sizes the request from: the page excerpts get 35% of it, and the answer's `max_tokens` is what is left after the prompt. The server then caps `max_tokens` at `MODEL_DEFAULT_MAX_TOKENS` (8192), which on most OpenAI-compatible APIs also has to hold the thinking of a reasoning model. Set it lower when the models have a smaller window, or the API rejects the longer prompts. A value that is not a positive integer is logged and replaced by the default.`INTERNAL_OPENAI_COMPATIBLE_API_REASONING_EFFORT` sets the `reasoning_effort` field of every request to the API, for every model in the list. The value is passed through as written, because providers accept different values (`none`, `minimal`, `low`, `medium`, `high`, `xhigh`); one the API rejects fails the request, and the error shows in the server log. Left empty, the field is not sent and the API applies its own default.### Default Behavior
.env.example+3
changelog.md+1
client/components/App/App.test.tsx+1
client/modules/config.test.ts+1
client/modules/config.ts+2
client/modules/pubSub.test.ts+5-2
client/modules/settings.test.ts+1
client/modules/textGeneration.responsePersistence.test.ts+10
client/modules/textGeneration.ts+1-1
client/modules/textGenerationUtilities.test.ts+36-17
client/modules/textGenerationUtilities.ts+14-8
client/modules/textGenerationWithInternalApi.ts+1-1
client/modules/textGenerationWithOpenAi.ts+1-1
docs/configuration.md+4-1