Skip to content

Commit

Permalink
Update fix.py
Browse files Browse the repository at this point in the history
  • Loading branch information
srdas committed Oct 24, 2024
1 parent 933a8d4 commit 94ff6ae
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/jupyter-ai/jupyter_ai/chat_handlers/fix.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,6 @@ def create_llm_chain(
self.prompt_template = prompt_template

runnable = prompt_template | llm # type:ignore
if not llm.manages_history:
runnable = RunnableWithMessageHistory(
runnable=runnable, # type:ignore[arg-type]
get_session_history=self.get_llm_chat_memory,
input_messages_key="extra_instructions",
history_messages_key="history",
history_factory_config=[
ConfigurableFieldSpec(
id="last_human_msg",
annotation=HumanChatMessage,
),
],
)
self.llm_chain = runnable

async def process_message(self, message: HumanChatMessage):
Expand Down

0 comments on commit 94ff6ae

Please sign in to comment.