Skip to content

Commit 0c2c01e

Browse files
committed
Changed embedding model component
1 parent 997195e commit 0c2c01e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/lfx/src/lfx/_assets/component_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/lfx/src/lfx/components/models/embedding_model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ async def update_build_config(
220220

221221
elif field_value == "Ollama":
222222
build_config["ollama_base_url"]["show"] = True
223-
build_config["ollama_base_url"]["load_from_db"] = True
223+
build_config["ollama_base_url"]["load_from_db"] = False
224+
build_config["ollama_base_url"]["value"] = DEFAULT_OLLAMA_URL
224225

225226
if await is_valid_ollama_url(url=self.ollama_base_url):
226227
try:

0 commit comments

Comments
 (0)