mirror of
https://github.com/sudoxreboot/groqd
synced 2026-04-14 19:47:07 +00:00
Log memory handling at info level
This commit is contained in:
parent
a87778065e
commit
ef410448f0
1 changed files with 3 additions and 3 deletions
|
|
@ -276,7 +276,7 @@ class GroqdConversationEntity(
|
||||||
elif memory_scope == "global":
|
elif memory_scope == "global":
|
||||||
memory_key = "global"
|
memory_key = "global"
|
||||||
|
|
||||||
LOGGER.debug(
|
LOGGER.info(
|
||||||
"Memory scope=%s memory_key=%s conv_id=%s device_id=%s user_id=%s",
|
"Memory scope=%s memory_key=%s conv_id=%s device_id=%s user_id=%s",
|
||||||
memory_scope,
|
memory_scope,
|
||||||
memory_key,
|
memory_key,
|
||||||
|
|
@ -300,7 +300,7 @@ class GroqdConversationEntity(
|
||||||
conversation_id = ulid.ulid_now()
|
conversation_id = ulid.ulid_now()
|
||||||
history = []
|
history = []
|
||||||
|
|
||||||
LOGGER.debug(
|
LOGGER.info(
|
||||||
"Conversation id=%s history_len=%s memory_scope=%s",
|
"Conversation id=%s history_len=%s memory_scope=%s",
|
||||||
conversation_id,
|
conversation_id,
|
||||||
len(history),
|
len(history),
|
||||||
|
|
@ -491,7 +491,7 @@ class GroqdConversationEntity(
|
||||||
await self._store.async_save(
|
await self._store.async_save(
|
||||||
{"history": self._persisted_history, "memory_index": self._memory_index}
|
{"history": self._persisted_history, "memory_index": self._memory_index}
|
||||||
)
|
)
|
||||||
LOGGER.debug(
|
LOGGER.info(
|
||||||
"Persisted memory_key=%s history_len=%s conv_id=%s",
|
"Persisted memory_key=%s history_len=%s conv_id=%s",
|
||||||
memory_key,
|
memory_key,
|
||||||
len(history),
|
len(history),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue