Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and srdas committed Mar 16, 2024
1 parent 988a265 commit ee4b6ed
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/jupyter-ai/jupyter_ai/chat_handlers/export.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import os
from typing import List

from jupyter_ai.models import AgentChatMessage, HumanChatMessage

from .base import BaseChatHandler, SlashCommandRoutingType
import os


class ExportChatHandler(BaseChatHandler):
id = "export"
Expand All @@ -22,8 +25,8 @@ def chat_message_to_markdown(self, message):
else:
return ""

# Multiple chat histories in separate files
def get_chat_filename(self, path='./chat_history.md'):
# Multiple chat histories in separate files
def get_chat_filename(self, path="./chat_history.md"):
filename, extension = os.path.splitext(path)
counter = 1
while os.path.exists(path):
Expand Down

0 comments on commit ee4b6ed

Please sign in to comment.