diff --git a/src/cogs/LogosCharacterCog.py b/src/cogs/LogosCharacterCog.py index 8c9843a..d0b20b2 100644 --- a/src/cogs/LogosCharacterCog.py +++ b/src/cogs/LogosCharacterCog.py @@ -72,6 +72,11 @@ async def on_message(self, message: discord.Message) -> None: credentials=self.eden_credentials, ) + print("ASISSTANT") + print(assistant) + print("CONCEPT") + print(concept) + interaction = { "character_id": self.characterId, "session_id": str(message.author.id) + str(message.channel.id), @@ -82,7 +87,12 @@ async def on_message(self, message: discord.Message) -> None: print("THE INTERACTION") print(interaction) + + print(LOGOS_URL) + response = request_logos_assistant(LOGOS_URL, assistant, interaction) + print("RESPONSE") + print(response) reply = response.get("message")[:2000] reply_message = await message.reply(reply) diff --git a/src/common/logos.py b/src/common/logos.py index 2c6036e..fdec5d0 100644 --- a/src/common/logos.py +++ b/src/common/logos.py @@ -6,8 +6,13 @@ def request_logos_assistant(api_url: str, assistant: dict, interaction: dict): print("----") print(assistant) print(interaction) + print(api_url) print("----") - + print("--> 1") + print("GET KEYS") + print(assistant.keys()) + print(interaction.keys()) + print("--> 2") response = requests.post( f"{api_url}/interact", json={ @@ -15,6 +20,7 @@ def request_logos_assistant(api_url: str, assistant: dict, interaction: dict): "interaction": interaction, }, ) + print("--> 3") print(response.json()) return response.json()