From 95d578d2460cfa1a1b1d60dd7dc503afddf152ad Mon Sep 17 00:00:00 2001 From: Altay Sansal Date: Mon, 17 Apr 2023 17:49:18 -0500 Subject: [PATCH] Fix type hint regression (#3033) Not sure what happened here but some of the file got overwritten by #2859 which broke filtering logic. Here is it fixed back to normal. @hwchase17 can we expedite this if possible :-) --------- Co-authored-by: Altay Sansal --- langchain/retrievers/chatgpt_plugin_retriever.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain/retrievers/chatgpt_plugin_retriever.py b/langchain/retrievers/chatgpt_plugin_retriever.py index 8b2f134b..4655d5ea 100644 --- a/langchain/retrievers/chatgpt_plugin_retriever.py +++ b/langchain/retrievers/chatgpt_plugin_retriever.py @@ -13,7 +13,7 @@ class ChatGPTPluginRetriever(BaseRetriever, BaseModel): url: str bearer_token: str top_k: int = 3 - filter: Optional[None] = None + filter: Optional[dict] = None aiosession: Optional[aiohttp.ClientSession] = None class Config: