Merge f97093d125 into sapling-pr-archive-ehhuang

This commit is contained in:
ehhuang 2025-11-05 11:28:13 -08:00 committed by GitHub
commit 3b22c1ac45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -637,7 +637,7 @@ class OpenAIVectorStoreMixin(ABC):
break
return VectorStoreSearchResponsePage(
search_query=search_query,
search_query=query if isinstance(query, list) else [query],
data=data,
has_more=False, # For simplicity, we don't implement pagination here
next_page=None,
@ -647,7 +647,7 @@ class OpenAIVectorStoreMixin(ABC):
logger.error(f"Error searching vector store {vector_store_id}: {e}")
# Return empty results on error
return VectorStoreSearchResponsePage(
search_query=search_query,
search_query=query if isinstance(query, list) else [query],
data=[],
has_more=False,
next_page=None,