Commit graph

9,848 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
10e4a6606d chore: Add inputs parameter to end method in BaseTracer 2024-06-27 15:37:16 -03:00
Gabriel Luiz Freitas Almeida
fa53def2d8 chore: Update LangSmithTracer constructor parameter type to UUID 2024-06-27 15:20:51 -03:00
Gabriel Luiz Freitas Almeida
6b74d364ca 🐛 (custom_component.py): fix issue where name was not being set correctly when name is None and self.display_name is True 2024-06-27 15:20:42 -03:00
Gabriel Luiz Freitas Almeida
d37ae29a3b ♻️ (base.py): Refactor add_trace and end_trace methods to use Union type for optional arguments to improve code readability and type safety 2024-06-27 15:20:20 -03:00
Gabriel Luiz Freitas Almeida
df2015160e 📝 (base.py): add abstract method __init__ to BaseTracer class with required parameters to enforce implementation in subclasses 2024-06-27 15:20:09 -03:00
Gabriel Luiz Freitas Almeida
ce0efda990 chore: Add metadata parameter to end method in BaseTracer
This commit adds a new optional `metadata` parameter to the `end` method in the `BaseTracer` class. The `metadata` parameter allows for passing additional information related to the tracing process. This enhancement provides more flexibility and extensibility to the tracing functionality.
2024-06-27 15:19:19 -03:00
Gabriel Luiz Freitas Almeida
c95036c9ac Refactor: handle error when retrieving messages from monitor service
This commit refactors the code in the `migrate_messages_from_monitor_service_to_database` function to handle errors that may occur when retrieving messages from the monitor service. If an exception is raised, the error is logged and the function returns `False`. This ensures that the migration process can continue even if there is an issue with retrieving the messages.
2024-06-27 14:36:02 -03:00
Gabriel Luiz Freitas Almeida
c6961539ee chore: Update LangSmithTracer import in tracing service 2024-06-27 14:24:25 -03:00
Gabriel Luiz Freitas Almeida
a2404628f0
Merge branch 'dev' into cherry_pick_tracer 2024-06-27 10:20:45 -07:00
anovazzi1
8362187107
Merge branch 'dev' into fixHook 2024-06-27 12:30:21 -03:00
anovazzi1
c7605099f7 format code 2024-06-27 12:28:54 -03:00
github-actions[bot]
272fa5e5e2
Merge branch 'dev' into cherry_pick_tracer 2024-06-27 13:38:35 +00:00
Gabriel Luiz Freitas Almeida
7c0b77505d refactor: Update LangSmithTracer to use convert_to_langchain_types from utils.py 2024-06-27 09:35:19 -03:00
Gabriel Luiz Freitas Almeida
e456e70bc0 refactor: Remove unused methods and abstract class from BaseTracer 2024-06-27 09:35:19 -03:00
Gabriel Luiz Freitas Almeida
4212b27800 refactor: Update logs to outputs in CustomComponent and TracingService classes 2024-06-27 09:35:19 -03:00
italojohnny
d4b7d8b469 create an abstract class for an existing class 2024-06-27 09:35:19 -03:00
igorrCarvalho
84e867ba23 Add blank line at the end of files 2024-06-27 02:21:05 -03:00
igorrCarvalho
1eee6d9e37 Refactor: refactor apiModal tabs generation to prevent bugs and enhance reliability 2024-06-27 02:17:15 -03:00
cristhianzl
2957ec0553 fix tests on store 2024-06-27 01:06:19 -03:00
cristhianzl
0cf7b2e192 🔧 (tsconfig.json): rename curl_api_generation.spec.ts to curlApiGeneration.spec.ts for consistency 2024-06-27 00:45:27 -03:00
cristhianzl
90c7c4940c (tests): add end-to-end test for cURL API generation in curlApiGeneration.spec.ts 2024-06-27 00:38:54 -03:00
cristhianzl
f147eeaa06 breaking tests to improve performance on CI 2024-06-27 00:35:57 -03:00
autofix-ci[bot]
6dc135fdb0
[autofix.ci] apply automated fixes 2024-06-27 03:01:57 +00:00
cristhianzl
c53c030a70 fix tests on textInputOutput drag handles 2024-06-27 03:00:47 -03:00
cristhianzl
65ea7bede3 Merge branch 'cz/fixTestsCI' of https://github.com/logspace-ai/langflow into cz/fixTestsCI 2024-06-27 02:57:20 -03:00
cristhianzl
f26ba492a4 add more shard and break store tests in 2 2024-06-27 02:57:02 -03:00
Cristhian Zanforlin Lousa
00f6bea71b
Merge branch 'dev' into cz/fixTestsCI 2024-06-26 23:45:52 -03:00
cristhianzl
9623a3b7fd (deleteComponentFlows.spec.ts): remove redundant waitFor calls and use waitForSelector for consistency 2024-06-26 22:40:02 -03:00
cristhianzl
94dbb96fe6 (chatInputOutputUser.spec.ts): update file path for image in end-to-end test 2024-06-26 22:29:11 -03:00
cristhianzl
922711740c (typescript_test.yml): update shard configuration to include 6 shards
 (index.tsx): add data-testid attribute to checkbox component
 (basicExamples.spec.ts): add waitForSelector for send icon to improve test stability
 (chatInputOutputUser.spec.ts): add waitForSelector for send icon to improve test stability
 (deleteComponentFlows.spec.ts): add waitForSelector for various elements to improve test stability
 (generalBugs.spec.ts): add waitForSelector for send icon to improve test stability
2024-06-26 22:22:51 -03:00
anovazzi1
aafee41c4b update types 2024-06-26 21:16:56 -03:00
cristhianzl
b833746609 fix tests on CI 2024-06-26 20:58:21 -03:00
cristhianzl
b645d17c87 🔧 (typescript_test.yml): add OPENAI_API_KEY to environment variables in CI
 (basicExamples.spec.ts): refactor API key check to run at the start of tests
2024-06-26 20:30:27 -03:00
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
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
github-actions[bot]
6bde501b8e
Merge branch 'dev' into merge_main 2024-06-26 21:59:55 +00: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
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
cristhianzl
6e16a6e83b moving tests 2024-06-26 17:48:12 -03:00