Merge branch 'ingestion-flow' into langflow-ingestion-modes
This commit is contained in:
commit
63d7b585b6
3 changed files with 56 additions and 26 deletions
|
|
@ -1,2 +1,49 @@
|
||||||
|
# Environment files
|
||||||
.env
|
.env
|
||||||
|
.env.local
|
||||||
|
.env.development
|
||||||
|
.env.production
|
||||||
|
|
||||||
|
# Auth files
|
||||||
.drive.json
|
.drive.json
|
||||||
|
*.json
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
node_modules/
|
||||||
|
*/node_modules/
|
||||||
|
**/node_modules/
|
||||||
|
|
||||||
|
# Python cache
|
||||||
|
__pycache__/
|
||||||
|
*/__pycache__/
|
||||||
|
**/__pycache__/
|
||||||
|
*.pyc
|
||||||
|
*.pyo
|
||||||
|
*.pyd
|
||||||
|
.Python
|
||||||
|
|
||||||
|
# Build outputs
|
||||||
|
build/
|
||||||
|
dist/
|
||||||
|
.next/
|
||||||
|
out/
|
||||||
|
|
||||||
|
# Development files
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
README.md
|
||||||
|
*.md
|
||||||
|
.vscode/
|
||||||
|
.idea/
|
||||||
|
|
||||||
|
# Logs
|
||||||
|
*.log
|
||||||
|
logs/
|
||||||
|
|
||||||
|
# OS files
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
# Temporary files
|
||||||
|
tmp/
|
||||||
|
temp/
|
||||||
|
|
|
||||||
|
|
@ -19,24 +19,6 @@ import { ProtectedRoute } from "@/components/protected-route";
|
||||||
import { useTask } from "@/contexts/task-context";
|
import { useTask } from "@/contexts/task-context";
|
||||||
import { useAuth } from "@/contexts/auth-context";
|
import { useAuth } from "@/contexts/auth-context";
|
||||||
|
|
||||||
interface GoogleDriveFile {
|
|
||||||
id: string
|
|
||||||
name: string
|
|
||||||
mimeType: string
|
|
||||||
webViewLink?: string
|
|
||||||
iconLink?: string
|
|
||||||
}
|
|
||||||
|
|
||||||
interface OneDriveFile {
|
|
||||||
id: string
|
|
||||||
name: string
|
|
||||||
mimeType?: string
|
|
||||||
webUrl?: string
|
|
||||||
driveItem?: {
|
|
||||||
file?: { mimeType: string }
|
|
||||||
folder?: unknown
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Connector {
|
interface Connector {
|
||||||
id: string;
|
id: string;
|
||||||
|
|
@ -105,14 +87,11 @@ function KnowledgeSourcesPage() {
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
const settings = await response.json();
|
const settings = await response.json();
|
||||||
// Update all state cleanly
|
// Update all state cleanly
|
||||||
settings.flow_id && setFlowId(settings.flow_id);
|
if (settings.flow_id) setFlowId(settings.flow_id);
|
||||||
settings.ingest_flow_id && setIngestFlowId(settings.ingest_flow_id);
|
if (settings.ingest_flow_id) setIngestFlowId(settings.ingest_flow_id);
|
||||||
settings.langflow_edit_url &&
|
if (settings.langflow_edit_url) setLangflowEditUrl(settings.langflow_edit_url);
|
||||||
setLangflowEditUrl(settings.langflow_edit_url);
|
if (settings.langflow_ingest_edit_url) setLangflowIngestEditUrl(settings.langflow_ingest_edit_url);
|
||||||
settings.langflow_ingest_edit_url &&
|
if (settings.langflow_public_url) setPublicLangflowUrl(settings.langflow_public_url);
|
||||||
setLangflowIngestEditUrl(settings.langflow_ingest_edit_url);
|
|
||||||
settings.langflow_public_url &&
|
|
||||||
setPublicLangflowUrl(settings.langflow_public_url);
|
|
||||||
if (settings.ingestion_defaults) {
|
if (settings.ingestion_defaults) {
|
||||||
console.log(
|
console.log(
|
||||||
"Loading ingestion defaults from backend:",
|
"Loading ingestion defaults from backend:",
|
||||||
|
|
|
||||||
|
|
@ -288,3 +288,7 @@ class LangflowConnectorService:
|
||||||
)
|
)
|
||||||
|
|
||||||
return task_id
|
return task_id
|
||||||
|
|
||||||
|
async def _get_connector(self, connection_id: str) -> Optional[BaseConnector]:
|
||||||
|
"""Get a connector by connection ID (alias for get_connector)"""
|
||||||
|
return await self.get_connector(connection_id)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue