mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 19:37:47 +01:00
fix: model dump issue
This commit is contained in:
@@ -193,7 +193,8 @@ def query_collection(
|
|||||||
k=k,
|
k=k,
|
||||||
query_embedding=query_embedding,
|
query_embedding=query_embedding,
|
||||||
)
|
)
|
||||||
results.append(result.model_dump())
|
if result is not None:
|
||||||
|
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}")
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user