diff --git a/src/main/java/com/devoxx/genie/service/PromptExecutionServiceImpl.java b/src/main/java/com/devoxx/genie/service/PromptExecutionServiceImpl.java index 53502377..61db8c6e 100644 --- a/src/main/java/com/devoxx/genie/service/PromptExecutionServiceImpl.java +++ b/src/main/java/com/devoxx/genie/service/PromptExecutionServiceImpl.java @@ -133,17 +133,6 @@ public boolean isRunning() { return running; } - /** - * Init chat memory. - * @param chatMessageContext the chat message context - */ - private void initChatMemory(ChatMessageContext chatMessageContext) { - if (chatMemory.messages().isEmpty()) { - chatMemory.add(createSystemMessage(chatMessageContext)); - } - chatMemory.add(chatMessageContext.getUserMessage()); - } - /** * Create a system message. * @param chatMessageContext the language text pair