Commit graph

11,826 commits

Author SHA1 Message Date
cristhianzl
a5b63711db Merge branch 'two_edges' of https://github.com/langflow-ai/langflow into two_edges 2024-06-17 10:20:16 -03:00
cristhianzl
d59f0b4034 fix folders changing orders when editing a name 2024-06-17 10:20:04 -03:00
ogabrielluiz
d1ab180040 Refactor utils.py and message.py modules
This commit refactors the `utils.py` module in the `base/prompts` directory and the `message.py` module in the `schema` directory. The changes include:
- Importing the `Message` class from `langflow.schema.message` in `utils.py`
- Importing various modules and classes from `langchain_core` in `message.py`
- Adding a new method `load_lc_prompt` to the `Message` class in `message.py`
- Adding a new class method `from_lc_prompt` to the `Message` class in `message.py`
- Adding a new method `format_text` to the `Message` class in `message.py`
- Adding a new class method `from_template_and_variables` to the `Message` class in `message.py`

These changes improve the organization and functionality of the code in the mentioned modules.
2024-06-17 10:09:30 -03:00
italojohnny
bfee5a508f unified vertex log creation 2024-06-17 10:03:31 -03:00
cristhianzl
1912f91139 Merge branch 'two_edges' of https://github.com/langflow-ai/langflow into two_edges 2024-06-17 10:01:36 -03:00
cristhianzl
fcf4512210 merge dev into two_edges 2024-06-17 10:01:28 -03:00
ogabrielluiz
50a37e92dc fix: set tiktoken_enable to True 2024-06-17 09:34:43 -03:00
ogabrielluiz
abf1582fe6 Refactor ChatInput and ChatOutput components to prevent duplicate message storage 2024-06-17 09:17:58 -03:00
Igor Carvalho
30eacad94a
General fixes related to shortcuts icons (#2179)
* Fix: center command icon for macOS

* Fix: Add visual shortcut to undo and redo

* code format

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-06-17 09:16:53 -03:00
ogabrielluiz
787297e1f0 chore: Remove unused test-results/.last-run.json file 2024-06-17 08:44:30 -03:00
ogabrielluiz
e4f85edb62 Refactor SettingsServiceFactory to use SettingsService.initialize() 2024-06-17 08:13:29 -03:00
ogabrielluiz
baba4b7185 (docker-build.yml): rename step from "Push Docker Image" to "Build and Push Docker Image" for clarity and accuracy 2024-06-17 07:57:46 -03:00
ogabrielluiz
7dae09ac92 chore: Update Docker build workflow to include file output 2024-06-17 07:17:32 -03:00
Nicolò Boschi
dceffa6e6f
fix docker tags on release process (#2196)
* fix docker tags on release process

* wait
2024-06-17 03:15:31 -07:00
Rodrigo
cbff3f8366 feat: Add SelectivePassThroughComponent 2024-06-16 20:57:09 -03:00
Rodrigo
cb1cc99c91 ```plaintext
Prevent duplicate message storage in Chat components

Introduce `_message_stored` flag to `ChatInput` and `ChatOutput` components to prevent storing the same message multiple times during a single session. This change ensures that each message is stored only once, enhancing data integrity and reducing redundant operations.
```
2024-06-16 20:30:12 -03:00
Rodrigo
06df9381ef Revert "```"
This reverts commit 29a31083e5.
2024-06-16 17:36:43 -03:00
Rodrigo
2cc23b8399 refactor: Update timestamp handling in Message schema
Refactor the `timestamp` field in the `Message` schema to use the `datetime.now(timezone.utc)` function instead of the `utc_now` utility. This change ensures consistency with other modules and reduces redundancy.

No behavioral changes are intended; only the implementation detail is modified to leverage the built-in function for getting the current UTC datetime.
2024-06-16 17:29:36 -03:00
Rodrigo
002430100c Refactor components and update JSON output for clarity 2024-06-16 16:46:14 -03:00
Rodrigo
29a31083e5 ```
Refactor datetime handling to use utc_now utility

Replaced multiple occurrences of `datetime.now(timezone.utc)` with
a single `utc_now` utility function across various modules. This
enhances code consistency and reusability, and reduces redundancy.

No behavioral changes are intended; only the implementation detail
is modified to leverage the utility function for getting the current
UTC datetime.

Fixes #1234
```
2024-06-16 16:44:59 -03:00
Jordan Frazier
ca660cf8df
test: add astra integration test (#2189)
* add first astra integ test framework

* use fixtures

* remove old tests from merge

* Add correct sender type

* chore: Update unit test command in GitHub workflow

---------

Co-authored-by: ogabrielluiz <gabriel@langflow.org>
2024-06-15 19:50:38 -07:00
Rodrigo
d0039fae1e feat: Add minimum chunk size to SplitContentComponent's split_text method 2024-06-15 23:09:04 -03:00
Rodrigo
4f0f8f3e0e refactor: Refactor SplitText component to SplitContentComponent 2024-06-15 22:47:35 -03:00
Rodrigo
0d609b9376 feat: Add Prompt component to prompts/__init__.py 2024-06-15 22:18:03 -03:00
Rodrigo
2996cb726d fix: Fix typo in import statement for DocumentsToDataComponent 2024-06-15 20:15:50 -03:00
ogabrielluiz
5a04adfa1f chore: Comment out unused Docker build and container run steps 2024-06-15 11:53:13 -03:00
ogabrielluiz
7b89ff5cfb 🔧 (docker-build.yml): add TEST_TAG environment variable to specify the test tag for the Docker image
🔧 (docker-build.yml): update tags value to use the TEST_TAG environment variable for Docker image tagging
2024-06-15 11:51:04 -03:00
ogabrielluiz
a0ce61ccca chore: Update pip installation commands in pre-release workflow 2024-06-15 11:14:13 -03:00
ogabrielluiz
40cebd1bcf chore: Update package versions to latest in pyproject.toml files 2024-06-15 11:09:16 -03:00
Madhavan
9bdd353666
Minor documentation update and exception message fix to avoid confusion with Google Vertex (#2088)
* Update to use non-deprecated output parser imports

* Update documentation

* Revert "Update to use non-deprecated output parser imports"

This reverts commit 11a969d82b6b2b3659eb7c3c26b5b29a98815834.

* Update rag-with-astradb.mdx

* Update chat.py to clarify error message

vertex in the exception message appears to be confusing with google vertex and causes confusion when used with other providers.

* Minor formatting to highlight the vscode launch file
update the error message

* Fix a couple more error texts
2024-06-15 07:06:07 -07:00
Gabriel Luiz Freitas Almeida
81bb749ea8
feat: Add cache parameter to RunnableVerticesManager (#2181)
This commit adds a new optional `cache` parameter to the `RunnableVerticesManager` class in the `runnable_vertices_manager.py` file. The `cache` parameter allows controlling whether the graph data should be cached or not when retrieving the next runnable vertices for a given vertex. If `cache` is set to `True`, the graph data will be cached using the `set_cache_coro` function. If `cache` is set to `False`, the graph data will not be cached.

This change was made to provide more flexibility in managing the caching behavior of the graph data.

Ref: #2180
2024-06-15 07:04:00 -07:00
Mendon Kissling
c7a15de0a9
[Docs] - Link to new features from migration page (#2163)
* migration-page

* check-links

* try
2024-06-15 06:56:17 -07:00
Gabriel Luiz Freitas Almeida
57403d7b65
Update Prettier and add trailing comma (#2187)
* chore: Update prettier-plugin-tailwindcss to version 0.6.4

* Add trailing comma
2024-06-15 06:53:45 -07:00
Nick Roth
71de94f65e
Support returning sub flow outputs (#2177)
Add support for returning outputs from running flow as records
2024-06-15 06:39:40 -07:00
Gabriel Luiz Freitas Almeida
dfc008b383
Update dependencies and fix docs (#2186)
* chore: Update chardet package to version 5.2.0

* chore: Update Docker build workflow to support multiple platforms and add container testing

* chore: Update pre-release workflow to include CLI testing

* chore: Update npm install command in lint-js.yml workflow

* chore: Update eslint and prettier versions in package.json

* fix: remove .mdx from link in docs

* Merge remote-tracking branch 'origin/dev' into update
2024-06-15 06:37:34 -07:00
Gabriel Luiz Freitas Almeida
5191638f8e
Update dependencies and workflows (#2185) 2024-06-15 06:02:08 -07:00
namastex888
5774a94898 upd: llm models 2024-06-15 02:32:17 +00:00
ogabrielluiz
47ea958441 chore: Update package versions in pyproject.toml files 2024-06-14 22:46:57 -03:00
Gabriel Luiz Freitas Almeida
c53901f7ef
Refactor endpoints.py to improve code handling and remove caching (#2180)
* chore: Refactor CustomComponent to improve repr_value handling

* ♻️ (endpoints.py): Refactor the simplified_run_flow and webhook_run_flow functions to remove caching

* Refactor endpoints.py to remove caching and update tests
2024-06-14 18:39:44 -07:00
ogabrielluiz
8e74b16e64 chore: Update .gitignore to exclude database files 2024-06-14 22:37:19 -03:00
namastex888
60806556b1 upd: llm models 2024-06-15 00:44:16 +00:00
namastex888
0ff4694a16 upd: cohere llm component 2024-06-14 23:48:06 +00:00
namastex888
b376bb26be fix: llm models 2024-06-14 23:38:48 +00:00
namastex888
aff0784280 fix: llm components 2024-06-14 23:34:39 +00:00
anovazzi1
9fdd7aa5f8 update error view in new logs 2024-06-14 20:26:19 -03:00
namastex888
d9eb3decf1 AntropicModel: add prefill field for structured outputs, AmazonBedrock: New component format 2024-06-14 22:18:59 +00:00
Lucas Oliveira
6a3e4817ed Fixed badges exhibition and genericModal footer 2024-06-14 19:05:32 -03:00
Lucas Oliveira
fd39e4bd6f Refactored Logs header 2024-06-14 19:05:32 -03:00
anovazzi1
191519e8f8 Merge branch 'two_edges' of personal:langflow-ai/langflow into two_edges 2024-06-14 18:32:50 -03:00
anovazzi1
6d8482f829 refactor: Add badge rendering for success and failure values in TableAutoCellRender 2024-06-14 18:32:44 -03:00