remove two debug lines

This commit is contained in:
Kwindla Hultman Kramer
2024-10-14 21:01:20 -07:00
parent 40b3e50815
commit 5431c44e51

View File

@@ -532,13 +532,11 @@ class AnthropicLLMContext(OpenAILLMContext):
def _restructure_from_openai_messages(self):
# first, map across self._messages calling self.from_standard_message(m) to modify messages in place
logger.debug("!!! mapping")
try:
self._messages[:] = [self.from_standard_message(m) for m in self._messages]
except Exception as e:
logger.error(f"Error mapping messages: {e}")
logger.debug("!!! restructuring system thingy")
# See if we should pull the system message out of our context.messages list. (For
# compatibility with Open AI messages format.)
if self.messages and self.messages[0]["role"] == "system":