lfx-nightly 0.1.13.dev10__py3-none-any.whl → 0.1.13.dev11__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of lfx-nightly might be problematic. Click here for more details.
- lfx/_assets/component_index.json +1 -1
- lfx/components/models/embedding_model.py +11 -8
- {lfx_nightly-0.1.13.dev10.dist-info → lfx_nightly-0.1.13.dev11.dist-info}/METADATA +1 -1
- {lfx_nightly-0.1.13.dev10.dist-info → lfx_nightly-0.1.13.dev11.dist-info}/RECORD +6 -6
- {lfx_nightly-0.1.13.dev10.dist-info → lfx_nightly-0.1.13.dev11.dist-info}/WHEEL +0 -0
- {lfx_nightly-0.1.13.dev10.dist-info → lfx_nightly-0.1.13.dev11.dist-info}/entry_points.txt +0 -0
|
@@ -31,7 +31,7 @@ class EmbeddingModelComponent(LCEmbeddingsModel):
|
|
|
31
31
|
DropdownInput(
|
|
32
32
|
name="provider",
|
|
33
33
|
display_name="Model Provider",
|
|
34
|
-
options=["OpenAI", "Ollama", "
|
|
34
|
+
options=["OpenAI", "Ollama", "IBM watsonx.ai"],
|
|
35
35
|
value="OpenAI",
|
|
36
36
|
info="Select the embedding model provider",
|
|
37
37
|
real_time_refresh=True,
|
|
@@ -62,7 +62,7 @@ class EmbeddingModelComponent(LCEmbeddingsModel):
|
|
|
62
62
|
MessageTextInput(
|
|
63
63
|
name="project_id",
|
|
64
64
|
display_name="Project ID",
|
|
65
|
-
info="
|
|
65
|
+
info="IBM watsonx.ai Project ID (required for IBM watsonx.ai)",
|
|
66
66
|
show=False,
|
|
67
67
|
),
|
|
68
68
|
IntInput(
|
|
@@ -128,7 +128,7 @@ class EmbeddingModelComponent(LCEmbeddingsModel):
|
|
|
128
128
|
**model_kwargs,
|
|
129
129
|
)
|
|
130
130
|
|
|
131
|
-
if provider == "
|
|
131
|
+
if provider == "IBM watsonx.ai":
|
|
132
132
|
try:
|
|
133
133
|
from langchain_ibm import WatsonxEmbeddings
|
|
134
134
|
except ImportError:
|
|
@@ -136,13 +136,13 @@ class EmbeddingModelComponent(LCEmbeddingsModel):
|
|
|
136
136
|
raise ImportError(msg) from None
|
|
137
137
|
|
|
138
138
|
if not api_key:
|
|
139
|
-
msg = "
|
|
139
|
+
msg = "IBM watsonx.ai API key is required when using IBM watsonx.ai provider"
|
|
140
140
|
raise ValueError(msg)
|
|
141
141
|
|
|
142
142
|
project_id = self.project_id
|
|
143
143
|
|
|
144
144
|
if not project_id:
|
|
145
|
-
msg = "Project ID is required for
|
|
145
|
+
msg = "Project ID is required for IBM watsonx.ai provider"
|
|
146
146
|
raise ValueError(msg)
|
|
147
147
|
|
|
148
148
|
params = {
|
|
@@ -167,6 +167,7 @@ class EmbeddingModelComponent(LCEmbeddingsModel):
|
|
|
167
167
|
build_config["api_key"]["required"] = True
|
|
168
168
|
build_config["api_key"]["show"] = True
|
|
169
169
|
build_config["api_base"]["display_name"] = "OpenAI API Base URL"
|
|
170
|
+
build_config["api_base"]["advanced"] = True
|
|
170
171
|
build_config["project_id"]["show"] = False
|
|
171
172
|
|
|
172
173
|
elif field_value == "Ollama":
|
|
@@ -177,16 +178,18 @@ class EmbeddingModelComponent(LCEmbeddingsModel):
|
|
|
177
178
|
build_config["api_key"]["show"] = False
|
|
178
179
|
build_config["api_base"]["display_name"] = "Ollama Base URL"
|
|
179
180
|
build_config["api_base"]["value"] = "http://localhost:11434"
|
|
181
|
+
build_config["api_base"]["advanced"] = True
|
|
180
182
|
build_config["project_id"]["show"] = False
|
|
181
183
|
|
|
182
|
-
elif field_value == "
|
|
184
|
+
elif field_value == "IBM watsonx.ai":
|
|
183
185
|
build_config["model"]["options"] = WATSONX_EMBEDDING_MODEL_NAMES
|
|
184
186
|
build_config["model"]["value"] = WATSONX_EMBEDDING_MODEL_NAMES[0]
|
|
185
|
-
build_config["api_key"]["display_name"] = "
|
|
187
|
+
build_config["api_key"]["display_name"] = "IBM watsonx.ai API Key"
|
|
186
188
|
build_config["api_key"]["required"] = True
|
|
187
189
|
build_config["api_key"]["show"] = True
|
|
188
|
-
build_config["api_base"]["display_name"] = "
|
|
190
|
+
build_config["api_base"]["display_name"] = "IBM watsonx.ai URL"
|
|
189
191
|
build_config["api_base"]["value"] = "https://us-south.ml.cloud.ibm.com"
|
|
192
|
+
build_config["api_base"]["advanced"] = False
|
|
190
193
|
build_config["project_id"]["show"] = True
|
|
191
194
|
|
|
192
195
|
return build_config
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lfx-nightly
|
|
3
|
-
Version: 0.1.13.
|
|
3
|
+
Version: 0.1.13.dev11
|
|
4
4
|
Summary: Langflow Executor - A lightweight CLI tool for executing and serving Langflow AI flows
|
|
5
5
|
Author-email: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
|
|
6
6
|
Requires-Python: <3.14,>=3.10
|
|
@@ -4,7 +4,7 @@ lfx/constants.py,sha256=Ert_SpwXhutgcTKEvtDArtkONXgyE5x68opMoQfukMA,203
|
|
|
4
4
|
lfx/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
lfx/settings.py,sha256=wnx4zkOLQ8mvampYsnnvVV9GvEnRUuWQpKFSbFTCIp4,181
|
|
6
6
|
lfx/type_extraction.py,sha256=eCZNl9nAQivKdaPv_9BK71N0JV9Rtr--veAht0dnQ4A,2921
|
|
7
|
-
lfx/_assets/component_index.json,sha256=
|
|
7
|
+
lfx/_assets/component_index.json,sha256=5u7MEm93Yt_-xBeIa5pRTGAor8cRFcUMetsV9O5Q2HY,3572648
|
|
8
8
|
lfx/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
lfx/base/constants.py,sha256=v9vo0Ifg8RxDu__XqgGzIXHlsnUFyWM-SSux0uHHoz8,1187
|
|
10
10
|
lfx/base/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -416,7 +416,7 @@ lfx/components/mistral/__init__.py,sha256=EABXqA45Tz50vZRmhEisbIIPEcRCvV9j-Y9Hf2
|
|
|
416
416
|
lfx/components/mistral/mistral.py,sha256=4heAlIFEeq_ljUZDPpNGyK_VRkWjwCfPbBaQK1mV4NY,3718
|
|
417
417
|
lfx/components/mistral/mistral_embeddings.py,sha256=QuqS_S3yHWCacs-Nc3qalpUsb-OACRWFZenUtCD_rLQ,1963
|
|
418
418
|
lfx/components/models/__init__.py,sha256=hhfj70MkcRATzAjJnntAg1A4E7kHlQn8GT0bizkB7L4,1113
|
|
419
|
-
lfx/components/models/embedding_model.py,sha256=
|
|
419
|
+
lfx/components/models/embedding_model.py,sha256=Q38BxC4xklLOAxS1Vam0EGP0g6cu0Dm7-uf679XImAc,7795
|
|
420
420
|
lfx/components/models/language_model.py,sha256=TA24DMAXrlruY3mNsfI9qGltfQ2h9cQpxe8DW8HLdeE,5992
|
|
421
421
|
lfx/components/mongodb/__init__.py,sha256=nFOQgiIvDnWGiWDSqZ0ERQme5DpA-cQgzybUiqXQtGw,953
|
|
422
422
|
lfx/components/mongodb/mongodb_atlas.py,sha256=OlAstNMToHuvGI-8djkiGr7kdGBr927O0SE5cnVd0O0,8594
|
|
@@ -730,7 +730,7 @@ lfx/utils/schemas.py,sha256=NbOtVQBrn4d0BAu-0H_eCTZI2CXkKZlRY37XCSmuJwc,3865
|
|
|
730
730
|
lfx/utils/util.py,sha256=Ww85wbr1-vjh2pXVtmTqoUVr6MXAW8S7eDx_Ys6HpE8,20696
|
|
731
731
|
lfx/utils/util_strings.py,sha256=nU_IcdphNaj6bAPbjeL-c1cInQPfTBit8mp5Y57lwQk,1686
|
|
732
732
|
lfx/utils/version.py,sha256=cHpbO0OJD2JQAvVaTH_6ibYeFbHJV0QDHs_YXXZ-bT8,671
|
|
733
|
-
lfx_nightly-0.1.13.
|
|
734
|
-
lfx_nightly-0.1.13.
|
|
735
|
-
lfx_nightly-0.1.13.
|
|
736
|
-
lfx_nightly-0.1.13.
|
|
733
|
+
lfx_nightly-0.1.13.dev11.dist-info/METADATA,sha256=dherVA7JNlTrOnZxoaISknodoQzPGMe-n4Q3Szv43bw,8290
|
|
734
|
+
lfx_nightly-0.1.13.dev11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
735
|
+
lfx_nightly-0.1.13.dev11.dist-info/entry_points.txt,sha256=1724p3RHDQRT2CKx_QRzEIa7sFuSVO0Ux70YfXfoMT4,42
|
|
736
|
+
lfx_nightly-0.1.13.dev11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|