mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
fix: model dump issue
This commit is contained in:
parent
457360dae7
commit
dcab991d44
1 changed files with 2 additions and 1 deletions
|
|
@ -193,6 +193,7 @@ def query_collection(
|
||||||
k=k,
|
k=k,
|
||||||
query_embedding=query_embedding,
|
query_embedding=query_embedding,
|
||||||
)
|
)
|
||||||
|
if result is not None:
|
||||||
results.append(result.model_dump())
|
results.append(result.model_dump())
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.exception(f"Error when querying the collection: {e}")
|
log.exception(f"Error when querying the collection: {e}")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue