Closed sudoskys closed 4 months ago
The recent updates encompass improvements in message handling, error management, and clarity of external links. Changes include enhancing MongoDB connection error handling, updating method parameters for consistency, refining data storage and retrieval in local and Redis storage systems, and expanding message types in responses.
File(s) | Change Summary |
---|---|
README.md |
Updated Docker workflow badge link for clarity. |
.../doc_manager/__init__.py |
Enhanced MongoDB connection error handling by logging and retrying on permission issues. |
.../memory/_base.py |
Updated append and write methods to accept lists of messages, aligning with parameter naming conventions. |
.../memory/local_storage.py |
Reversed the order of result list in the read method and updated write to accept a list of messages for storage. |
.../memory/redis_storage/__init__.py |
Modified append and write methods to handle lists of BaseModel instances differently and updated message processing in Redis. |
.../openai/request.py |
Added SystemMessage to ResponseFormat to support more message types in responses. |
.../app/middleware/llm_task.py |
Replaced history list reversal with a logging statement in the build_message function. |
app/middleware/llm_task.py (1)
`141-141`: Logging added for history messages. Ensure that the removal of the list reversal (not shown in the diff but mentioned in the summary) is intentional and aligns with the desired message order in the system.
Summary by CodeRabbit
New Features
SystemMessage
type to responses, enhancing messaging capabilities.Bug Fixes
Documentation
Refactor
message
tomessages
in memory management methods to align with naming conventions.read
method in local storage to return results in reverse order.