Refactor the MessageModel class in schema.py to include methods for validating and serializing the 'files' field. This ensures that the 'files' field can be properly handled when it is a string or a list.
In service.py, update the query in the MonitorService class to include the 'files' field when retrieving messages from the database. This ensures that the 'files' field is included in the query results.
* chore: Update persist_directory parameter to handle None value in ChromaSearch and Chroma components
* 🐛 (test_endpoints.py): fix assertion to check for correct key name in output results for chat and any input types
* Refactor chatView component to handle artifacts in chat messages, fixing bug on streamed messages after refresh
* Improve error handling and error messages in CustomNodes hooks to provide more informative and user-friendly error messages. This ensures that users are aware of any unexpected errors that occur while updating or adding components, and prompts them to try again. This change also aligns with recent improvements in error handling across the codebase.
* ♻️ (utils.ts): remove unnecessary trailing commas in function parameters
* ✨ (frontend): add constants for error messages in CustomNodes hooks
♻️ (frontend): refactor error handling in CustomNodes hooks to use constants
* feat: Add constants for error messages in CustomNodes hooks
Refactor error handling in CustomNodes hooks to use constants for error messages. This improves code readability and maintainability, ensuring consistent error messages are displayed to users. This change aligns with recent improvements in error handling across the codebase.
* refactor: Improve error handling and error messages in CustomNodes hooks
* refactor: Improve error handling and error messages in CustomNodes hooks
* refactor: Improve error handling and error messages in CustomNodes hooks
* refactor: Add missing click event in codeAreaModalComponent.spec.ts
* refactor: Update cURL code generation to use icon-Copy test ID for button click
* refactor: Improve error handling and error messages in CustomNodes hooks
* refactor: Remove unnecessary click event in logs.spec.ts
* refactor: Fix XPath selectors in textInputOutput.spec.ts
* fix python api test
* refactor: Update cURL code generation to use icon-Copy test ID for button click
* fix save component
* refactor: Update API key selection in userSettings.spec.ts
* refactor: Update promptModalComponent.spec.ts
* refactor: Update chatInputOutput.spec.ts for zoom out functionality
* refactor: Add return_message option to ChatInput build_config
* fix streaming
* update example
* update example name
* refactor: Update chatInputOutputUser.spec.ts test to improve readability and maintainability
---------
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
This pull request includes two changes. First, the `.gitignore` file is
updated to include `*.db-shm` and `*.db-wal` files. Second, the
`ChatInput` and `ChatOutput` classes are refactored to include a new
`return_message` parameter. This parameter allows the caller to specify
whether they want the message to be returned as a `Message` object or
just the message text. These changes improve the functionality and
maintainability of the code.
* Create PythonStructuredTool
This draft involves receiving two 'Code' types as inputs and creating a structured tool.
* Delete src/backend/base/langflow/components/experimental/PythonStructuredTool
* Create PythonCodeStructuredTool.py
* feat: Update Couchbase component to handle import errors
* chore: Update package versions in pyproject.toml and poetry.lock
* refactor: Fix encoding issue in read_text_file function
* 🐛 (parse.py): fix issue where method was always set to "post" when data or data binary was provided in curl command
* refactor: Fix string formatting in MonitorService delete_messages method
* fix: Update Couchbase import instructions in CouchbaseComponent
* refactor: Fix encoding issue in read_text_file function
The code changes introduce two new components, `MessageComponent` and `StoreMessageComponent`, to the `langflow` project.
The `MessageComponent` creates a `Message` object given a session ID, allowing for the creation of chat messages with customizable sender type, sender name, and text.
The `StoreMessageComponent` stores a chat message, utilizing the `store_message` function and the `get_messages` function to retrieve the stored messages.
These changes aim to enhance the chat functionality of the project.