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
* ignore sqlite tmp files
* update many dependencies to be optional
* improve makefile help messagem
* chore: Update langflow-base dependency to use local path for development
* change postgres to mandatory dependency
* improve makefile readability
* Revert update many dependencies to be optional
This reverts commit 80780565df5bc63632e6971054670cee467542f9.
---------
Co-authored-by: ogabrielluiz <gabriel@langflow.org>
🐛 (index.tsx): fix conditional rendering of Download option in toolbar
✨ (ProfilePictureForm): add setLoading(false) after updating state to ensure loading state is reset
* 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>
♻️ (count-handles): refactor to use optional chaining for template fields
♻️ (get-nodes-with-default-value): refactor to use optional chaining
♻️ (nodeToolbarComponent): refactor to use optional chaining for template fields
💡 (utils.ts): remove unnecessary trailing commas in function parameters to improve code readability and consistency
* docker: force python version to 3.12.3
* also fixes pydantic
* remove ci build - too slow
* use lock file for deps
* use poetry.lock
* use poetry.lock
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.