Commit graph

12,725 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
00a753631c feat: Add default value for index field in DuckDbMessageModel
This commit adds a default value of `None` for the `index` field in the `DuckDbMessageModel` class. The default value is set using the `Field` class from the `pydantic` library, with the `default` parameter set to `None` and the `alias` parameter set to "index". This change ensures that the `index` field is optional and can be omitted when creating instances of the `DuckDbMessageModel` class.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-06-26 19:56:21 -03:00
github-actions[bot]
b11e3519cf
Merge branch 'dev' into migrate_message_table 2024-06-26 22:55:49 +00:00
Gabriel Luiz Freitas Almeida
7d1977ea90
Merge branch 'dev' into migrate_message_table 2024-06-26 15:48:26 -07:00
anovazzi1
182d9e1951
update share modal style (#2361)
Refactor component to use a div instead of a span for better styling and layout

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-26 15:47:49 -07:00
Gabriel Luiz Freitas Almeida
120e4994d4
Fix webhook endpoint not receiving data that is not JSON (#2390)
This PR makes sure webhook can take any type of input.
2024-06-26 22:46:17 +00:00
Ítalo Johnny
5d06cf7115
Fix Image Display Issue on Windows by Setting a Static Path (#2382)
change string path
2024-06-26 15:41:29 -07:00
anovazzi1
d0a930e944
update message structure in frontend (#2388)
* update messages structure to new structure without index

* style: run prettier

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-06-26 15:34:31 -07:00
Gabriel Luiz Freitas Almeida
1ce9872e98 fix: webhook endpoint passes webhook input as is 2024-06-26 19:31:16 -03:00
Gabriel Luiz Freitas Almeida
e71bc64539 feat: Add test for webhook with random payload 2024-06-26 19:30:31 -03:00
Gabriel Luiz Freitas Almeida
a81f686c39
Add JSON Mode option to OpenAIModelComponent (#2386)
* feat: Add JSON Mode option to OpenAIModelComponent

* ♻️ (OpenAIModel.py): add type ignore comment

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-26 15:02:32 -07:00
Gabriel Luiz Freitas Almeida
2094b6b10a
Merge branch 'main' into dev (#2384)
Merges changes from main to the dev branch.
2024-06-26 15:00:53 -07:00
github-actions[bot]
6bde501b8e
Merge branch 'dev' into merge_main 2024-06-26 21:59:55 +00:00
Gabriel Luiz Freitas Almeida
755a30a260
fix: Refactor RunnableVerticesManager to consider inactivated vertices in is_vertex_runnable and find_runnable_predecessors_for_successors (#2378)
Fixes an error where inactivated components would be considered
runnable.
2024-06-26 14:59:44 -07:00
github-actions[bot]
a2a5351a4b
Merge branch 'dev' into verify_stop_flow 2024-06-26 21:55:05 +00:00
github-actions[bot]
45329c310e
Merge branch 'dev' into merge_main 2024-06-26 21:55:04 +00:00
Gabriel Luiz Freitas Almeida
1a01942520
chore: make calls to end_all_traces run concurrently (#2387)
This PR makes so that end_all_traces does not block execution.
2024-06-26 21:47:56 +00:00
Gabriel Luiz Freitas Almeida
0c2251baf5 chore: makes sure end_all_traces run concurrently 2024-06-26 18:10:53 -03:00
Gabriel Luiz Freitas Almeida
d54672a3e3 refactor: Update DuckDbMessageModel import in monitor service
This commit updates the import statement for the `DuckDbMessageModel` class in the `monitor/service.py` file. The import is modified to reflect the recent changes made to the `monitor/schema.py` file, where the `DuckDbMessageModel` class was added. This update ensures that the correct class is imported and used in the `add_row` method of the `MonitorService` class.
2024-06-26 17:48:54 -03:00
Gabriel Luiz Freitas Almeida
23f199e57f refactor: Add index field to DuckDbMessageModel in monitor schema
This commit adds the `index` field to the `DuckDbMessageModel` class in the `monitor/schema.py` file. The `index` field is of type `int` and is used to store the index value for the message. This modification enhances the schema of the `DuckDbMessageModel` and allows for more efficient querying and sorting of messages based on their index.
2024-06-26 17:48:44 -03:00
Gabriel Luiz Freitas Almeida
16622522be refactor: Remove error handling for migrating messages from monitor service to database 2024-06-26 17:48:36 -03:00
Gabriel Luiz Freitas Almeida
04b1ce8b16 refactor: Update migrate_messages_from_monitor_service_to_database function in utils.py
This commit refactors the migrate_messages_from_monitor_service_to_database function in utils.py to correctly handle the session_id parameter. The session_id is now included in the key used to filter out messages that already exist in the database, ensuring that duplicate messages are not inserted. This improves the data integrity and consistency of the database.
2024-06-26 17:39:45 -03:00
Gabriel Luiz Freitas Almeida
93ce1ab14e refactor: Update from_message method in MessageBase model to accept UUID as flow_id parameter 2024-06-26 17:38:23 -03:00
Gabriel Luiz Freitas Almeida
34a88f5088 add type ignore 2024-06-26 17:38:17 -03:00
Gabriel Luiz Freitas Almeida
e6b42d3a60 ♻️ (utils.py): ignore type error 2024-06-26 17:35:59 -03:00
Gabriel Luiz Freitas Almeida
8e466b83ba feat: Add field validation for flow_id in MessageTable model
This commit adds field validation for the `flow_id` attribute in the `MessageTable` model. The `validate_flow_id` class method is implemented to ensure that the `flow_id` value is either `None` or a valid UUID. This validation helps maintain data integrity and consistency when working with the `MessageTable` model.
2024-06-26 17:28:45 -03:00
Gabriel Luiz Freitas Almeida
1341860dea Refactor test_get_messages function to use list comprehension 2024-06-26 17:28:45 -03:00
Gabriel Luiz Freitas Almeida
3afda401f3 chore: Update filterwarnings in pyproject.toml 2024-06-26 17:28:45 -03:00
Gabriel Luiz Freitas Almeida
4b4aefc8bc feat: Migrate messages from monitor service to database 2024-06-26 17:28:45 -03:00
Gabriel Luiz Freitas Almeida
86f25f3b2c feat: Add flow_id serialization in Message class
This commit adds the `serialize_flow_id` method to the `Message` class in the `message.py` file. This method serializes the `flow_id` attribute of a `Message` object, converting it to a UUID if it is a string. This ensures consistent serialization of the `flow_id` attribute when working with the `Message` class.
2024-06-26 17:28:45 -03:00
Gabriel Luiz Freitas Almeida
5ff9bed407 Migrate messages from monitor service to database 2024-06-26 17:28:45 -03:00
Gabriel Luiz Freitas Almeida
347ec56598 feat: Add flow_id assignment in MessageBase constructor 2024-06-26 17:28:45 -03:00
Gabriel Luiz Freitas Almeida
bb7f365ccd chore: Update schema and service files for DuckDbMessageModel 2024-06-26 17:28:45 -03:00
Gabriel Luiz Freitas Almeida
ee4ace8bfe feat: Migrate messages from monitor service to database
This commit migrates messages from the monitor service to the database. It adds a new function `migrate_messages_from_monitor_service_to_database` in the `utils.py` file, which retrieves messages from the monitor service, adds them to the database, and deletes them from the monitor service. This migration ensures that messages are stored in the database for better reliability and retrieval.
2024-06-26 17:28:45 -03:00
Gabriel Luiz Freitas Almeida
4a6d661d1e chore: update lock 2024-06-26 16:52:19 -03:00
Gabriel Luiz Freitas Almeida
79a4cce9a4 chore: Set default value for ttl_seconds to None in CassandraVectorStoreComponent 2024-06-26 16:51:33 -03:00
Gabriel Luiz Freitas Almeida
a4953c6f4f chore: Import firecrawl integration package in FirecrawlCrawlApi and FirecrawlScrapeApi
This commit imports the firecrawl integration package in the FirecrawlCrawlApi and FirecrawlScrapeApi files. It ensures that the package is available for use in the code. If the package is not installed, an ImportError is raised with instructions to install it using `pip install firecrawl-py`.
2024-06-26 16:51:25 -03:00
autofix-ci[bot]
92edf1aad2
[autofix.ci] apply automated fixes (attempt 2/3) 2024-06-26 19:31:25 +00:00
autofix-ci[bot]
7bd03336bf
[autofix.ci] apply automated fixes 2024-06-26 19:29:41 +00:00
Gabriel Luiz Freitas Almeida
68c4485770 Merge branch 'main' into dev 2024-06-26 16:28:45 -03:00
github-actions[bot]
bf5d4e9c46
Merge branch 'dev' into verify_stop_flow 2024-06-26 18:52:40 +00:00
anovazzi1
a471c671d7
Fix flow settings validation and save button (#2360)
This pull request fixes the validation and save button behavior in the
flow settings modal. Previously, the save button was not disabled when
it should have been, and the endpoint name validation was not working
correctly. This PR updates the validation logic and ensures that the
save button is disabled when necessary.
2024-06-26 18:45:03 +00:00
anovazzi1
c6afb0f999
Merge branch 'dev' into fixFlowSettings 2024-06-26 15:38:04 -03:00
github-actions[bot]
a088363260
Merge branch 'dev' into verify_stop_flow 2024-06-26 16:06:27 +00:00
Gabriel Luiz Freitas Almeida
fde56d107a
chore: Add auto-update workflow (#2376)
The auto-update workflow has been added to the repository. This workflow
will automatically trigger on pushes to the `dev` and `main` branches.
It runs on the latest version of Ubuntu and uses the
`tibdex/auto-update@v2` action to perform the auto-update process.
2024-06-26 09:06:17 -07:00
Gabriel Luiz Freitas Almeida
8a82e38c9b Refactor Graph class to consider inactivated vertices in is_vertex_runnable and find_runnable_predecessors_for_successors 2024-06-26 11:00:29 -03:00
Gabriel Luiz Freitas Almeida
aa48fa5f6b chore: Refactor RunnableVerticesManager to consider inactivated vertices in is_vertex_runnable and find_runnable_predecessors_for_successors 2024-06-26 10:57:04 -03:00
Gabriel Luiz Freitas Almeida
128a049fba
Merge branch 'dev' into add_auto_update 2024-06-26 06:00:38 -07:00
Gabriel Luiz Freitas Almeida
6dcdc73d5a
Rename Kubernetes deployment file to .md extension (#2374)
This pull request renames the Kubernetes deployment file to have a .md
extension instead of the previous extension. This change is made to
improve the readability and clarity of the file. No other changes are
made in this pull request.
2024-06-26 05:13:36 -07:00
Gabriel Luiz Freitas Almeida
280a49fbef chore: Rename Kubernetes deployment file to .md extension 2024-06-26 09:12:39 -03:00
Gabriel Luiz Freitas Almeida
3f8c244f27 chore: Add auto-update workflow
The auto-update workflow has been added to the repository. This workflow will automatically trigger on pushes to the `dev` and `main` branches. It runs on the latest version of Ubuntu and uses the `tibdex/auto-update@v2` action to perform the auto-update process.
2024-06-26 09:01:19 -03:00