Commit graph

10,413 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
5ca1c22893
Add support for Python 3.12 (#1873)
* Add support for Python 3.12

* chore: Update Python version to 3.11 and DuckDB dependency to 0.10.2

* chore: fix mistral components lint

* Update SQLAgent and SQLExecutor imports to use langchain_community utilities

* Update langchain import to langchain_community

* Update langchain import to langchain_community

* 📝 (langflow/__main__.py): Import warnings module to suppress warnings during app execution
📝 (langflow/api/v1/schemas.py): Update timestamp field default value to use datetime.now with timezone.utc
📝 (auth/utils.py): Ignore warnings related to datetime.utcnow when decoding JWT tokens and creating refresh tokens
📝 (models/flow/model.py): Update updated_at field default value to use lambda function with timezone.utc
📝 (models/user/model.py): Update create_at and updated_at field default values to use lambda function with timezone.utc
2024-05-10 12:25:34 -03:00
cristhianzl
919db5d928 (raw-component): create a new raw component called RawComponent
📝 (raw-component): add a basic implementation of the RawComponent with a simple div element inside
2024-05-10 11:23:37 -03:00
h-arnold
12d1a9a426
Added MistralAI LLM and Embedding (#1865)
* Added Mistral AI LLM Model and added MistralAI embeddings.

* Added tracking to the new MistralAIEmbeddings.py and MistalModel.py

* Added MistralAI model specs and added the correct models list to the Mistral Model LLM component.

* Actually added the MistralAI model specs this time.
2024-05-09 15:54:16 -03:00
Mendon Kissling
561765c74c
[Docs] How to contribute components (#1838)
Document how to contribute components to Langflow.
2024-05-09 12:33:36 -04:00
Mendon Kissling
b0a96928f1 fix-folder-path 2024-05-09 12:28:02 -04:00
Mendon Kissling
a9a1259852 Merge branch 'dev' into docs-how-to-contribute-components 2024-05-09 12:23:49 -04:00
Mendon Kissling
436c290ee7 submit-to-store 2024-05-08 11:47:51 -04:00
Cristhian Zanforlin Lousa
b3fa552bf9
fix state error when is debouncing changes on integers inputs (#1848)
🐛 (index.tsx): fix missing line break after handleUpdateValues function
call
 (index.tsx): improve performance by debouncing handleUpdateValues
function call for certain types of parameters
📝 (parameterUtils.ts): update handleUpdateValues function to use
optional chaining for accessing template properties
🚀 (chatInputOutput.spec.ts): remove unused imports and commented code
🚀 (dragAndDrop.spec.ts): fix typo in test description
2024-05-08 11:56:29 -03:00
Gabriel Luiz Freitas Almeida
1a54582b95
Update ZepMessageReader and ZepMessageWriter to avoid 404 error (#1844)
* Update ZepMessageReader and ZepMessageWriter to avoid 404 error

* Update ZepMessageReader and ZepMessageWriter to use API Base Path option

* Update ZepMessageReader and ZepMessageWriter to fix API Base Path and avoid 404 error

* Update ZepMessageReader and ZepMessageWriter to use API Base Path option
2024-05-08 11:46:48 -03:00
Gabriel Luiz Freitas Almeida
fa87284937 Update starter projects 2024-05-08 10:30:33 -03:00
Rodrigo Nader
03f781c0f4
Refactor SplitText (#1836)
Refactor LCModelComponent status message formatting for better readability
2024-05-08 09:59:43 -03:00
Rodrigo Nader
5a21263272
Refactor TextOperatorComponent to include true_output parameter (#1829)
* Refactor TextOperatorComponent to include true_output parameter

* Refactor TextOperatorComponent to include true_output parameter

* Add PassComponent to experimental components
2024-05-08 09:59:27 -03:00
Gabriel Luiz Freitas Almeida
28c2585415
(openai_constants.py): add a new file to define constant MODEL_NAMES for OpenAI models (#1858)
*  (openai_constants.py): add a new file to define constant MODEL_NAMES for OpenAI models
♻️ (ChatOpenAISpecs.py, OpenAIModel.py): refactor to use MODEL_NAMES constant from openai_constants.py for consistency and easier maintenance

*  (IDGenerator.py): update key name from 'real_time_refresh' to 'refresh_button' for better clarity and consistency
2024-05-07 22:47:21 -03:00
Gabriel Luiz Freitas Almeida
82877d8b99 🐛 (chat.py): Add validation for stream configuration in graph to prevent two connected vertices with stream or streaming set to True from raising a ValueError
🐛 (chat.py): Raise HTTPException with status code 400 if "stream or streaming set to True" is found in the exception message
📝 (base.py): Add method `validate_stream` to Graph class to validate stream configuration and prevent connected vertices with stream or streaming set to True
📝 (base.py): Update method `get_all_successors` in Graph class to specify type hint for the `vertex` parameter and return type
📝 (base.py): Update method `get_successors` in Graph class to specify type hint for the `vertex` parameter and return type
2024-05-07 20:04:31 -03:00
Mendon Kissling
ba59f077a2
[Docs] - Cleanup Components Folder (#1852)
* inputs

* agents

* chains

* custom-component

* align-admonitions-in-custom

* data-and-embeddings

* experimental

* helpers

* memories

* model_specs

* outputs

* prompts

* retrievers

* textsplitter

* tools

* utilities

* vector-stores
2024-05-07 18:39:40 -03:00
Mendon Kissling
42714d35f1
[Docs] - Vector Store RAG Starter Flow (#1850)
* initial-content

* additional-query
2024-05-07 18:39:24 -03:00
Gabriel Luiz Freitas Almeida
a037bf9978
Add GroqLogo and GroqIcon components (#1853)
* Update package.json format command to include only specific directories

* Add GroqLogo component and GroqIcon to the project

* Update dependencies and add GroqModelSpecs component

* Fix nullable column issue in langflow/alembic/versions/6e7b581b5648_fix_nullable.py

* Add GroqModelSpecs component and update dependencies

* Update GroqModelSpecs and GroqModel display names

* chore: Add langchain-pinecone dependency and update constants.py
2024-05-07 18:38:13 -03:00
Gabriel Luiz Freitas Almeida
21be1268ae
Update langchain-pinecone dependency and add Pinecone API key (#1854)
* Update langchain-pinecone dependency and related code

* Add Pinecone API key to environment variables

* Fix commented out code in codeTabsComponent, parameterComponent, and editNodeModal

* Add PineconeSearchComponent to PineconeSearch.py

* Update PineconeComponent to accept pinecone_api_key as optional parameter
2024-05-07 17:46:54 -03:00
anovazzi1
0226706391
"Refactor: Add playground check before opening" (#1845)
Refactor: Add playground check before opening (#1844)
2024-05-07 11:09:18 -03:00
Cristhian Zanforlin Lousa
81d31b1337
Refactor: change action key based on user OS (#1843) 2024-05-06 22:41:35 -03:00
Cristhian Zanforlin Lousa
81c07804ec
Refactor: Disable AgGridReact table resize option (#1842) 2024-05-06 22:39:53 -03:00
igorrCarvalho
8cae3c75f2 Refactor: Block only last column size 2024-05-06 21:45:10 -03:00
igorrCarvalho
2f60185aa4 Refactor: change action key based on user OS 2024-05-06 19:20:08 -03:00
igorrCarvalho
b96eb4715d Refactor: Disable AgGridReact table resize option 2024-05-06 19:13:35 -03:00
Gabriel Luiz Freitas Almeida
9b201740e6 Update versions 2024-05-06 16:54:42 -03:00
Kiyu Gabriel
dea6b5167e
Update VertexAIEmbeddings.py (#1834)
Upgrade to new library that isn't deprecated.
2024-05-06 16:48:36 -03:00
Gabriel Luiz Freitas Almeida
8975bf9ba3 Add langchain-google-vertexai dependency to pyproject.toml 2024-05-06 16:42:30 -03:00
cristhianzl
da3057fd50 🐛 (index.tsx): fix missing line break after handleUpdateValues function call
 (index.tsx): improve performance by debouncing handleUpdateValues function call for certain types of parameters
📝 (parameterUtils.ts): update handleUpdateValues function to use optional chaining for accessing template properties
🚀 (chatInputOutput.spec.ts): remove unused imports and commented code
🚀 (dragAndDrop.spec.ts): fix typo in test description
2024-05-06 16:11:02 -03:00
Mendon Kissling
29925c679e
[Docs] - Install issues, spaces, and feedback (#1816)
* Address feedback on quickstart and install. 
* Cleanup Huggingface Spaces page, cleanup references to HF Spaces; and
remove lightning (for now).
* Cleanup Common Installation Problems page for easier reading. Could
use more content here.
* "Langflow 1.0 alpha" where appropriate.
2024-05-06 14:41:28 -04:00
Cristhian Zanforlin Lousa
d938fb3a3c
Bugs - Global Variables (#1839)
Fixed height and resizability of Global Variables table, made value of
credentials variable as password field
2024-05-06 15:37:07 -03:00
Lucas Oliveira
fabb3c9b56 Added password on addNewVariable modal 2024-05-06 19:10:19 +01:00
Lucas Oliveira
2f56f3a952 Fixed password on inputComponent 2024-05-06 18:52:36 +01:00
Lucas Oliveira
9172dbc895 Fixed size and pagination of globalVariables table 2024-05-06 18:45:13 +01:00
Lucas Oliveira
28949ed526 fixed flex on column 2024-05-06 18:37:05 +01:00
Lucas Oliveira
f661edb5bc Fixed resizability of last column 2024-05-06 18:33:13 +01:00
Mendon Kissling
fbae9f59c0 Merge branch 'dev' into docs-how-to-contribute-components 2024-05-06 11:33:13 -04:00
cristhianzl
a2a1642017 📝 (index.tsx): remove trailing whitespace in button className to improve code readability
♻️ (index.tsx): refactor button className to remove unnecessary ternary operator and improve code readability
♻️ (index.tsx): refactor icon className to remove unnecessary classes and improve code readability
2024-05-04 00:57:16 -03:00
cristhianzl
ca85bc0827 📝 (index.tsx): remove trailing whitespace in button classNames to improve code readability
♻️ (index.tsx): remove unnecessary commas in dependency arrays to improve code formatting
2024-05-03 18:30:38 -03:00
cristhianzl
26fd9d5312 Merge branch 'dev' of https://github.com/langflow-ai/langflow into dev 2024-05-03 18:30:16 -03:00
cristhianzl
79b5223c19 (cardComponent/index.tsx): remove trailing commas in useState calls for better code consistency
♻️ (cardComponent/index.tsx): remove unnecessary parentheses in useState calls for better code readability
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in
2024-05-03 18:24:57 -03:00
Gabriel Luiz Freitas Almeida
92d39a6500
Fix mark_branch function and refactor build_and_cache_graph_from_db function (#1833)
* Fix mark_branch function in Graph class to properly handle visited vertices

* Refactor build_and_cache_graph_from_db function in utils.py to simplify code and remove unnecessary parameter

* Fix retrieval of graph from cache in retrieve_vertices_order function

* Fix possible_id type annotation in get_id_from_search_string function

* Refactor APIRequest class to improve variable naming and remove unnecessary underscore prefix in headers parameter

* Refactor buildVertices function in buildUtils.ts to improve code readability and remove unnecessary variable assignment

* Fix API endpoints in test_endpoints.py to use correct HTTP methods
2024-05-03 18:23:41 -03:00
cristhianzl
2dc4ffd99f fix UI errors 2024-05-03 18:17:49 -03:00
anovazzi1
e361228b48 chore: Update CollectionCardComponent with hover background color and card filter overlay 2024-05-03 18:00:50 -03:00
Cristhian Zanforlin Lousa
566c3642f6
Add headers to API Request component (#1832)
♻️ (APIRequest.py): refactor APIRequest class to improve variable naming and remove unnecessary underscore prefix in headers parameter
💡 (APIRequest.py): update comments in APIRequest class to improve code readability and maintainability
2024-05-03 17:26:11 -03:00
anovazzi1
cd6473be9d hide tags while there is no playground 2024-05-03 16:57:05 -03:00
anovazzi1
142029d91e fix playground on dev 2024-05-03 16:50:23 -03:00
anovazzi1
781ac4fe9d chore: Add z-index to delete button in CollectionCardComponent 2024-05-03 16:04:17 -03:00
anovazzi1
ebaaf726f9 chore: Add card filter overlay and update flex alignment in CollectionCardComponent 2024-05-03 16:01:58 -03:00
anovazzi1
338a236ee7 remove isGroupRestriction from shortcut 2024-05-03 15:19:58 -03:00
Mendon Kissling
36fc9c1769
Merge branch 'dev' into docs-update-install-issues 2024-05-03 09:51:19 -04:00