Skip to content

Commit

Permalink
fix newline typo in improve_code (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchia authored Aug 29, 2023
1 parent 79b5503 commit 04324c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jupyter-ai/jupyter_ai/chat_handlers/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ async def improve_code(code, llm=None, verbose=False):
chain = CodeImproverChain.from_llm(llm=llm, verbose=verbose)
improved_code = await chain.apredict(code=code)
improved_code = "\n".join(
[line for line in improved_code.split("/n") if not line.startswith("```")]
[line for line in improved_code.split("\n") if not line.startswith("```")]
)
return improved_code

Expand Down

0 comments on commit 04324c1

Please sign in to comment.