Skip to content

Commit

Permalink
fix optional k arg in YChatHistory
Browse files Browse the repository at this point in the history
  • Loading branch information
dlqqq committed Dec 24, 2024
1 parent 2f131eb commit 37fa257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jupyter-ai/jupyter_ai/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class YChatHistory(BaseChatMessageHistory):
TODO: Consider just defining `k` as the number of messages and default to 4.
"""

def __init__(self, ychat: YChat, k: Optional[int]):
def __init__(self, ychat: YChat, k: Optional[int] = None):
self.ychat = ychat
self.k = k

Expand Down

0 comments on commit 37fa257

Please sign in to comment.