Skip to content

Commit

Permalink
fix /learn TypeError (jupyterlab#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlqqq authored Jul 21, 2023
1 parent e2142fe commit 4049084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jupyter-ai/jupyter_ai/chat_handlers/learn.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def _build_list_response(self):

async def learn_dir(self, path: str, chunk_size: int, chunk_overlap: int):
dask_client = await self.dask_client_future
splitter_kwargs = {chunk_size: chunk_size, chunk_overlap: chunk_overlap}
splitter_kwargs = {"chunk_size": chunk_size, "chunk_overlap": chunk_overlap}
splitters = {
".py": PythonCodeTextSplitter(**splitter_kwargs),
".md": MarkdownTextSplitter(**splitter_kwargs),
Expand Down

0 comments on commit 4049084

Please sign in to comment.