소스 검색

Create claude_ai_session

resphina 2 년 전
부모
커밋
9a1e10deff
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      bot/claude/claude_ai_session

+ 9 - 0
bot/claude/claude_ai_session

@@ -0,0 +1,9 @@
+from bot.session_manager import Session
+
+
+class ClaudeAiSession(Session):
+    def __init__(self, session_id, system_prompt=None, model="claude"):
+        super().__init__(session_id, system_prompt)
+        self.model = model
+        # claude逆向不支持role prompt
+        # self.reset()