You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Access FlowiseAI endpoints with customizable flows
7
7
required_open_webui_version: 0.4.3
8
-
requirements: requests
8
+
requirements: requests,flowise>=1.0.4
9
9
version: 0.4.3
10
10
licence: MIT
11
11
"""
@@ -18,6 +18,7 @@
18
18
importjson
19
19
fromdatetimeimportdatetime
20
20
importtime
21
+
fromflowiseimportFlowise, PredictionData
21
22
22
23
fromloggingimportgetLogger
23
24
logger=getLogger(__name__)
@@ -26,29 +27,51 @@
26
27
27
28
classPipeline:
28
29
classValves(BaseModel):
29
-
API_KEY: str=Field(default="", description="FlowiseAI API key")
30
-
API_URL: str=Field(default="", description="FlowiseAI base URL")
31
-
RATE_LIMIT: int=Field(default=5, description="Rate limit for the pipeline")
30
+
FLOWISE_API_KEY: str=Field(default="", description="FlowiseAI API key (from Bearer key, e.g. QMknVTFTB40Pk23n6KIVRgdB7va2o-Xlx73zEfpeOu0)")
31
+
FLOWISE_BASE_URL: str=Field(default="", description="FlowiseAI base URL (e.g. http://localhost:3000 (URL before '/api/v1/prediction'))")
32
+
RATE_LIMIT: int=Field(default=5, description="Rate limit for the pipeline (ops/minute)")
32
33
33
34
FLOW_0_ENABLED: Optional[bool] =Field(default=False, description="Flow 0 Enabled (make this flow available for use)")
34
-
FLOW_0_ID: Optional[str] =Field(default=None, description="Flow 0 ID (the FlowiseAI flow identifier)")
35
-
FLOW_0_NAME: Optional[str] =Field(default=None, description="Flow 0 Name (human-readable name for the flow)")
35
+
FLOW_0_ID: Optional[str] =Field(default=None, description="Flow 0 ID (the flow GUID, e.g. b06d97f5-da14-4d29-81bd-8533261b6c88)")
36
+
FLOW_0_NAME: Optional[str] =Field(default=None, description="Flow 0 Name (human-readable flow name, no special characters, e.g. news or stock-reader)")
36
37
37
38
FLOW_1_ENABLED: Optional[bool] =Field(default=False, description="Flow 1 Enabled (make this flow available for use)")
38
-
FLOW_1_ID: Optional[str] =Field(default=None, description="Flow 1 ID (the FlowiseAI flow identifier)")
39
-
FLOW_1_NAME: Optional[str] =Field(default=None, description="Flow 1 Name (human-readable name for the flow)")
39
+
FLOW_1_ID: Optional[str] =Field(default=None, description="Flow 1 ID (the flow GUID, e.g. b06d97f5-da14-4d29-81bd-8533261b6c88)")
40
+
FLOW_1_NAME: Optional[str] =Field(default=None, description="Flow 1 Name (human-readable flwo name, no special characters, e.g. news or stock-reader)")
40
41
41
42
FLOW_2_ENABLED: Optional[bool] =Field(default=False, description="Flow 2 Enabled (make this flow available for use)")
42
-
FLOW_2_ID: Optional[str] =Field(default=None, description="Flow 2 ID (the FlowiseAI flow identifier)")
43
-
FLOW_2_NAME: Optional[str] =Field(default=None, description="Flow 2 Name (human-readable name for the flow)")
43
+
FLOW_2_ID: Optional[str] =Field(default=None, description="Flow 2 ID (the flow GUID, e.g. b06d97f5-da14-4d29-81bd-8533261b6c88)")
44
+
FLOW_2_NAME: Optional[str] =Field(default=None, description="Flow 2 Name (human-readable flow name, no special characters, e.g. news or stock-reader)")
44
45
45
46
FLOW_3_ENABLED: Optional[bool] =Field(default=False, description="Flow 3 Enabled (make this flow available for use)")
46
-
FLOW_3_ID: Optional[str] =Field(default=None, description="Flow 3 ID (the FlowiseAI flow identifier)")
47
-
FLOW_3_NAME: Optional[str] =Field(default=None, description="Flow 3 Name (human-readable name for the flow)")
47
+
FLOW_3_ID: Optional[str] =Field(default=None, description="Flow 3 ID (the flow GUID, e.g. b06d97f5-da14-4d29-81bd-8533261b6c88)")
48
+
FLOW_3_NAME: Optional[str] =Field(default=None, description="Flow 3 Name (human-readable flow name, no special characters, e.g. news or stock-reader)")
48
49
49
50
FLOW_4_ENABLED: Optional[bool] =Field(default=False, description="Flow 4 Enabled (make this flow available for use)")
50
-
FLOW_4_ID: Optional[str] =Field(default=None, description="Flow 4 ID (the FlowiseAI flow identifier)")
51
-
FLOW_4_NAME: Optional[str] =Field(default=None, description="Flow 4 Name (human-readable name for the flow)")
51
+
FLOW_4_ID: Optional[str] =Field(default=None, description="Flow 4 ID (the flow GUID, e.g. b06d97f5-da14-4d29-81bd-8533261b6c88)")
52
+
FLOW_4_NAME: Optional[str] =Field(default=None, description="Flow 4 Name (human-readable flow name, no special characters, e.g. news or stock-reader)")
53
+
54
+
FLOW_5_ENABLED: Optional[bool] =Field(default=False, description="Flow 5 Enabled (make this flow available for use)")
55
+
FLOW_5_ID: Optional[str] =Field(default=None, description="Flow 5 ID (the flow GUID, e.g. b06d97f5-da14-4d29-81bd-8533261b6c88)")
56
+
FLOW_5_NAME: Optional[str] =Field(default=None, description="Flow 5 Name (human-readable flow name, no special characters, e.g. news or stock-reader)")
57
+
58
+
FLOW_6_ENABLED: Optional[bool] =Field(default=False, description="Flow 6 Enabled (make this flow available for use)")
59
+
FLOW_6_ID: Optional[str] =Field(default=None, description="Flow 6 ID (the flow GUID, e.g. b06d97f5-da14-4d29-81bd-8533261b6c88)")
60
+
FLOW_6_NAME: Optional[str] =Field(default=None, description="Flow 6 Name (human-readable flow name, no special characters, e.g. news or stock-reader)")
61
+
62
+
FLOW_7_ENABLED: Optional[bool] =Field(default=False, description="Flow 7 Enabled (make this flow available for use)")
63
+
FLOW_7_ID: Optional[str] =Field(default=None, description="Flow 7 ID (the flow GUID, e.g. b06d97f5-da14-4d29-81bd-8533261b6c88)")
64
+
FLOW_7_NAME: Optional[str] =Field(default=None, description="Flow 7 Name (human-readable flow name, no special characters, e.g. news or stock-reader)")
65
+
66
+
FLOW_8_ENABLED: Optional[bool] =Field(default=False, description="Flow 8 Enabled (make this flow available for use)")
67
+
FLOW_8_ID: Optional[str] =Field(default=None, description="Flow 8 ID (the flow GUID, e.g. b06d97f5-da14-4d29-81bd-8533261b6c88)")
68
+
FLOW_8_NAME: Optional[str] =Field(default=None, description="Flow 8 Name (human-readable flow name, no special characters, e.g. news or stock-reader)")
69
+
70
+
FLOW_9_ENABLED: Optional[bool] =Field(default=False, description="Flow 9 Enabled (make this flow available for use)")
71
+
FLOW_9_ID: Optional[str] =Field(default=None, description="Flow 9 ID (the flow GUID, e.g. b06d97f5-da14-4d29-81bd-8533261b6c88)")
72
+
FLOW_9_NAME: Optional[str] =Field(default=None, description="Flow 9 Name (human-readable flow name, no special characters, e.g. news or stock-reader)")
0 commit comments