Skip to content

Commit 832b0f8

Browse files
committed
Changed docling options to include local support and be shown in the Langflow tab
1 parent 193f3c4 commit 832b0f8

15 files changed

Lines changed: 730 additions & 601 deletions

File tree

frontend/app/api/mutations/useUpdateSettingsMutation.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export interface UpdateSettingsRequest {
3131
vlm_max_tokens?: number;
3232
vlm_concurrency?: number;
3333
vlm_timeout?: number;
34-
vlm_openai_url?: string;
3534
vlm_watsonx_api_version?: string;
3635

3736
// Provider-specific settings (for dialogs)

frontend/app/api/queries/useGetModelsQuery.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export interface ModelOption {
99
value: string;
1010
label: string;
1111
default?: boolean;
12+
supports_images?: boolean;
1213
}
1314

1415
export interface ModelsResponse {

frontend/app/api/queries/useGetSettingsQuery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export interface KnowledgeSettings {
2828
vlm_max_tokens?: number;
2929
vlm_concurrency?: number;
3030
vlm_timeout?: number;
31-
vlm_openai_url?: string;
3231
vlm_watsonx_api_version?: string;
3332
}
3433

@@ -89,6 +88,7 @@ export interface Settings {
8988
localhost_url?: string;
9089
ingest_via_chat?: boolean;
9190
show_provider_ingest_settings?: boolean;
91+
local_vlm_models?: string[];
9292
segment_write_key?: string;
9393
environment?: string;
9494
langflow_port?: string | number | null;

frontend/app/settings/[tab]/page.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@ import { AgentSettingsSection } from "../_components/agent-settings-section";
1111
import { ApiKeysSection } from "../_components/api-keys-section";
1212
import { ConnectorAccessSection } from "../_components/connector-access-section";
1313
import { ConnectorsTab } from "../_components/connectors-tab";
14-
import { DoclingVlmSettingsSection } from "../_components/docling-vlm-settings-section";
1514
import { IngestSettingsSection } from "../_components/ingest-settings-section";
1615
import ModelProviders from "../_components/model-providers";
1716

1817
const VALID_TABS = [
1918
"connectors",
2019
"providers",
2120
"langflow",
22-
"ingestion",
2321
"api-keys",
2422
"connector-access",
2523
] as const;
@@ -109,12 +107,6 @@ export default async function SettingsTabPage({
109107
) {
110108
redirect("/settings/connectors");
111109
}
112-
if (
113-
tab === "ingestion" &&
114-
!canShowRbacGatedSettingsTab("providers:write", tabAccess)
115-
) {
116-
redirect("/settings/connectors");
117-
}
118110

119111
const queryClient = getQueryClient();
120112
try {
@@ -155,7 +147,6 @@ export default async function SettingsTabPage({
155147
<IngestSettingsSection />
156148
</div>
157149
)}
158-
{tab === "ingestion" && <DoclingVlmSettingsSection />}
159150
{tab === "api-keys" && <ApiKeysSection />}
160151
{tab === "connector-access" && <ConnectorAccessSection />}
161152
</HydrationBoundary>

0 commit comments

Comments
 (0)