Commit graph

10,075 commits

Author SHA1 Message Date
anovazzi1
9c24affbd1 Refactor globalVariablesStore to use optional provider 2024-02-08 14:16:03 -03:00
anovazzi1
b76eb655b2 Refactor API functions and update global variables types 2024-02-08 14:01:52 -03:00
anovazzi1
a91668b5f2 fix(parameterComponent): add options prop to ParameterComponent to display global variables in dropdown
feat(codeTabsComponent): add support for global variables in InputComponent and DictComponent
feat(inputComponent): remove dependency on globalVariablesStore and use options prop instead
feat(editNodeModal): add support for global variables in InputComponent
2024-02-08 13:45:18 -03:00
cristhianzl
448a34f934 delete inside nodetoolbar and code replaced position with delete 2024-02-08 10:22:37 -03:00
Gabriel Luiz Freitas Almeida
d8522f8236 Add emoji validation to icon field in custom components 2024-02-08 10:12:31 -03:00
Gabriel Luiz Freitas Almeida
f48b4468f6 Add icon property to APIClassType 2024-02-08 10:02:33 -03:00
Gabriel Luiz Freitas Almeida
585ae464a1 Add icon support to CustomComponent 2024-02-08 10:01:29 -03:00
cristhianzl
4193242ec6 open advanced modal on double click node 2024-02-08 09:33:37 -03:00
Gabriel Luiz Freitas Almeida
42fb9aa4aa makes Text an input_type if field_type is str 2024-02-07 23:41:05 -03:00
Gabriel Luiz Freitas Almeida
4bba0212ff Merge remote-tracking branch 'origin/dev' into zustand/io/migration 2024-02-07 22:42:20 -03:00
Gabriel Luiz Freitas Almeida
b1ef28da7b Refactor ChromaSearchComponent to return records instead of documents 2024-02-07 22:33:19 -03:00
Gabriel Luiz Freitas Almeida
3a1fa30984 Add RecordsAsTextComponent to convert Records to text 2024-02-07 22:33:14 -03:00
Gabriel Luiz Freitas Almeida
603ffd1f1b Add Record class and conversion functions 2024-02-07 22:33:07 -03:00
Gabriel Luiz Freitas Almeida
7a4b2dfc7e Refactor ChatOpenAIComponent configuration fields 2024-02-07 21:00:35 -03:00
Gabriel Luiz Freitas Almeida
f21ddc2306 Refactor OpenAIModelComponent configuration fields 2024-02-07 21:00:03 -03:00
Gabriel Luiz Freitas Almeida
5ed7c4fbe1 Add nodeColors and nodeNames for models 2024-02-07 20:47:29 -03:00
Gabriel Luiz Freitas Almeida
db969dbed0 Add OpenAI model component to langflow 2024-02-07 20:47:24 -03:00
Gabriel Luiz Freitas Almeida
4bbe26fa65 Rename ChromaComponent to ChromaSearchComponent 2024-02-07 20:30:13 -03:00
Gabriel Luiz Freitas Almeida
26ae9efab3 Update ChromaComponent description and display name 2024-02-07 20:29:57 -03:00
Gabriel Luiz Freitas Almeida
cc5e491d8a Add PromptComponent to langflow prompts 2024-02-07 20:28:29 -03:00
Cristhian Zanforlin Lousa
034312d2a2
Refactor: make new flow create as "Untitled document" instead of random name (#1408) 2024-02-07 20:00:21 -03:00
Gabriel Luiz Freitas Almeida
1f5f5d7006 Add ChromaSearch component for implementing a Vector Store using Chroma 2024-02-07 19:42:47 -03:00
Gabriel Luiz Freitas Almeida
41ead835f0 Refactor file path handling in Vertex class 2024-02-07 19:13:55 -03:00
Gabriel Luiz Freitas Almeida
a2e0a6aed7 Refactor get_full_path method in CustomComponent 2024-02-07 19:13:49 -03:00
Gabriel Luiz Freitas Almeida
e260ee1470
Fix disallowed_special parameter and refactor CharacterTextSplitterComponent (#1410)
This pull request fixes the disallowed_special parameter in the OpenAIEmbeddingsComponent and refactors the CharacterTextSplitterComponent to use typing and update the return value. It also updates the ChromaComponent configuration and bumps the version to 0.6.7a1 in pyproject.toml.
2024-02-07 18:59:58 -03:00
Gabriel Luiz Freitas Almeida
0987affdf7 Bump version to 0.6.7a1 in pyproject.toml 2024-02-07 18:57:43 -03:00
Gabriel Luiz Freitas Almeida
829c810562 Update ChromaComponent configuration 2024-02-07 18:57:24 -03:00
Gabriel Luiz Freitas Almeida
a76b356526 Refactor CharacterTextSplitterComponent to use typing and update return value 2024-02-07 18:57:19 -03:00
Gabriel Luiz Freitas Almeida
778ed3a8e7 Fix disallowed_special parameter in OpenAIEmbeddingsComponent 2024-02-07 18:50:04 -03:00
anovazzi1
de854325ed Fix message type conversion in newChatView component 2024-02-07 18:14:31 -03:00
Gabriel Luiz Freitas Almeida
52494fbf74 Update display name and return result as dictionary 2024-02-07 15:55:23 -03:00
Gabriel Luiz Freitas Almeida
5d7f00c5ad Add support for ChatVertex in _get_vertex_class() method 2024-02-07 15:31:36 -03:00
anovazzi1
36ccba9b78 Merge branch 'zustand/io/migration' of personal:logspace-ai/langflow into zustand/io/migration 2024-02-07 15:30:28 -03:00
Gabriel Luiz Freitas Almeida
b79e4a1198 Remove unnecessary steps in AgentVertex and ChainVertex 2024-02-07 14:59:48 -03:00
Gabriel Luiz Freitas Almeida
b4012a80b2 Fix validationStatus data in GenericNode component 2024-02-07 14:59:39 -03:00
Gabriel Luiz Freitas Almeida
f01d8cf046 Refactor component name determination logic in directory_reader.py 2024-02-07 14:23:21 -03:00
Gabriel Luiz Freitas Almeida
dfae41cd45 Add AsyncStreamingLLMCallbackHandleSIO class 2024-02-07 14:07:27 -03:00
Gabriel Luiz Freitas Almeida
58ee61d0a2 Update schemas.py with serialization functions 2024-02-07 14:07:23 -03:00
Gabriel Luiz Freitas Almeida
0abeda51e9 Refactor _get_vertex_class method to handle node_base_type 2024-02-07 14:07:13 -03:00
Gabriel Luiz Freitas Almeida
350ce9ecb6 Update generate_result to use async/await 2024-02-07 14:07:08 -03:00
Gabriel Luiz Freitas Almeida
ee43952e42 Refactor invoke_lc_runnable function parameters 2024-02-07 14:07:02 -03:00
Gabriel Luiz Freitas Almeida
b32485a6fa Fix pydantic field serialization and error handling 2024-02-07 14:06:56 -03:00
anovazzi1
45e24058bd feat(parameterComponent): add support for global variables in parameter input field
This commit adds support for global variables in the parameter input field of the ParameterComponent. It imports the useGlobalVariablesStore hook from the globalVariables store and uses it to access the globalVariablesEntries state. It also imports the setNoticeData function from the alert store to display a notice when a global variable is used as a parameter value.

In the onChange event handler of the input field, the commit checks if the entered value is a global variable by comparing it with the globalVariablesEntries array. If it is a global variable, the commit sets the notice data to inform the user that the real value will be updated during runtime. Additionally, the commit marks the parameter as a global variable by setting the load_from_db property of the template object to true in the setNode function.
2024-02-07 14:01:31 -03:00
Gabriel Luiz Freitas Almeida
05b088cdfe Add support for Text and Document inputs in RetrievalQAComponent 2024-02-06 23:11:41 -03:00
Gabriel Luiz Freitas Almeida
ec1fe03974 Update TemplateField class in base.py 2024-02-06 21:16:38 -03:00
Gabriel Luiz Freitas Almeida
108d0b2e12 Refactor class instantiation and update params with load_from_db_fields 2024-02-06 21:16:34 -03:00
Gabriel Luiz Freitas Almeida
937a50498a Add load_from_db_fields attribute to Vertex class 2024-02-06 21:16:27 -03:00
Gabriel Luiz Freitas Almeida
84f4c32076 Refactor Credential model to use Optional for provider field 2024-02-06 19:14:52 -03:00
Gabriel Luiz Freitas Almeida
1558934429 Add delete_credential endpoint to API 2024-02-06 19:04:32 -03:00
Gabriel Luiz Freitas Almeida
155a679a6d Add delete_credential endpoint to credential API 2024-02-06 17:31:51 -03:00