Commit graph

10,159 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
db01d7e589 New lock 2024-04-10 17:02:50 -03:00
Cristhian Zanforlin Lousa
7037af501e
Update Playwright test and ChatMessage component (#1668)
This pull request includes updates to the Playwright test in
`chat_io.spec.ts` and the `ChatMessage` component in
`chatMessage/index.tsx`. The Playwright test now includes assertions for
the chat output and input, ensuring that the correct messages are
displayed. The `ChatMessage` component now includes `data-testid`
attributes for the chat messages, allowing for easier testing and
identification of specific messages.
2024-04-10 16:51:43 -03:00
anovazzi1
69c13133de Update Playwright test in chat_io.spec.ts and ChatMessage component in chatMessage/index.tsx 2024-04-10 16:45:30 -03:00
Gabriel Luiz Freitas Almeida
addf2932c0 Update starter projects 2024-04-10 16:42:59 -03:00
Gabriel Luiz Freitas Almeida
9f74f71693 Update nullable attribute for created_at and updated_at fields in model.py and variable/model.py 2024-04-10 16:41:45 -03:00
Gabriel Luiz Freitas Almeida
4d05187f6b Update SQLModel imports and add sa_column to created_at and updated_at fields in model.py and variable/model.py 2024-04-10 16:34:48 -03:00
Gabriel Luiz Freitas Almeida
8abb1592ac Update package versions in poetry.lock file 2024-04-10 14:31:58 -03:00
Gabriel Luiz Freitas Almeida
7d6deba529 Update package versions in pyproject.toml and poetry.lock files 2024-04-10 14:25:30 -03:00
Gabriel Luiz Freitas Almeida
c97d3c6a02 Fix error in list check 2024-04-10 14:25:24 -03:00
Gabriel Luiz Freitas Almeida
accf3980ba
Update environment variable settings and dependencies (#1667)
* Update environment variable settings in constants.py

* Bump langflow-base version to 0.0.25 and add asyncer dependency

* Update Pinecone, Qdrant, MongoDBAtlasVector, and SupabaseVectorStore components
2024-04-10 12:12:54 -03:00
Gabriel Luiz Freitas Almeida
e2bdef8a5f Update GitHub workflows and remove unused workflow (#1648) 2024-04-10 11:59:09 -03:00
Gabriel Luiz Freitas Almeida
e486d46602
Add environment variable initialization and store_environment_variables (#1654)
* Add environment variable initialization and add store_environment_variables

* Add variables_to_get_from_environment to store specific environment variables

* Remove unused variables from VariableService

* Update global variables documentation and refactor VariableService
2024-04-10 11:57:53 -03:00
Gabriel Luiz Freitas Almeida
b0308336c2
Fix State Service not loading when using load_flow_from_json (#1661)
* Refactor test_loading.py to improve code readability and maintainability

* Refactor code in test_template.py, __main__.py, and utils.py to improve code readability and maintainability

* Fix logger.configure() to disable logging when disable flag is True

* Refactor validate_icon function to use emoji library for emoji validation in model.py

* Refactor import statements in base.py files to improve code organization and maintainability

* Refactor state_manager.py to handle error when getting state service and use InMemoryStateService as fallback

* Refactor load_flow_from_json function in load.py to configure logs and load services

* Add test_run_flow_from_json_object function to test_loading.py

* Refactor langflow.processing.process.py and langflow.schema.graph.py

* Set all streaming to false in run_flow_from_json function

* Refactor import statements in base.py files to improve code organization and maintainability

* Refactor arun function in base.py to handle event loop and async execution

* Add docstring to run_flow_from_json

* Refactor import statements in base.py files to use logger in langflow interface

* Refactor build method in ChatOutput and TextInput classes to use build_with_record

* Refactor import statements in base.py files to improve code organization and maintainability

* Refactor import statements in PythonREPLTool.py for improved code organization and maintainability

* Refactor build method in TextOutput class to include optional record_template parameter

* Refactor build method in ChatComponent class to include build_no_record method

* Refactor input_value parameter in TextInput build method to use Text type

* Refactor import statements in FlowTool.py for improved code organization and maintainability

* Bump langflow-base version to 0.0.25 and add asyncer dependency

* Refactor code in multiple files for improved organization and maintainability

* Refactor import statements in multiple files for improved code organization and maintainability
2024-04-10 11:56:37 -03:00
Alex Leventer
98d9190eee
Fix readme license link (#1651) 2024-04-10 10:56:53 -03:00
Gabriel Luiz Freitas Almeida
74d83e182f Update index.mdx to remove redundant content 2024-04-09 16:11:50 -03:00
Cristhian Zanforlin Lousa
77eaf09e13
Cz/fix fetch data (#1655) 2024-04-09 16:10:31 -03:00
cristhianzl
69887a6433 Merge branch 'cz/fixFetchData' into dev 2024-04-09 15:46:41 -03:00
cristhianzl
82b80842dd (App.tsx): add support for auto login feature to improve user experience and reduce login friction
📝 (authContext.tsx): remove unused autoLogin function and refactor getUser function to improve code readability and maintainability
📝 (authContext.tsx): add getUser function to retrieve user data and improve user authentication flow
📝 (auth.ts): add getUser function to AuthContextType to improve type safety and provide a clear API for accessing user data
2024-04-09 15:45:28 -03:00
Gabriel Luiz Freitas Almeida
2ff3d49841
Update GitHub workflows and remove unused workflow (#1648)
* Update GitHub workflows to include release_package input

* Remove unused GitHub workflow for async API tests
2024-04-09 01:12:58 -03:00
Gabriel Luiz Freitas Almeida
44867d5e21 Update package versions and fix dependencies 2024-04-09 01:09:57 -03:00
Gabriel Luiz Freitas Almeida
254f11485e
Fix various issues and refactor code (#1647)
* Add options field to FIELD_FORMAT_ATTRIBUTES constant and import pathlib in test_initial_setup.py

* Update TEXT_FILE_TYPES in utils.py and handle missing file path error in Vertex class

* Fix tweak value assignment in process.py and clear session cache in test_process.py

* New lock

* Update repository URLs and fix file paths in code blocks

* Fix data retrieval in test_pickle_graph and test_pickle_each_vertex in test_graph.py

* Refactor load_starter_projects function to include type hinting in setup.py

* Update name of Basic Prompting (Hello, world!) project to Basic Prompting (Hello, World)

* Refactor Graph.process() method to accept start_component_id parameter

* Refactor test_endpoints.py to use "Chat Output" instead of "Prompt Output" and "ChatOutput" instead of "TextOutput"
2024-04-09 01:02:56 -03:00
cristhianzl
afff3228c7 (App.tsx): refactor code to use async/await syntax for fetching data when the user is authenticated
🐛 (App.tsx): handle errors when fetching data and log them to the console for debugging purposes
2024-04-08 21:42:34 -03:00
Gabriel Luiz Freitas Almeida
a465d71a5e Fix version retrieval in pre-release-langflow.yml workflow 2024-04-08 21:36:50 -03:00
Gabriel Luiz Freitas Almeida
212cf9446a
Refactor run_on_mac_or_linux function and update Docker image tags (#1644)
* Refactor run_on_mac_or_linux function in __main__.py to remove open_browser parameter

* Update Docker image tags in GitHub workflows to use logspace/langflow instead of langflow/langflow

* Update package versions in pyproject.toml and poetry.lock
2024-04-08 21:27:11 -03:00
Gabriel Luiz Freitas Almeida
99454a3d5d Fix version retrieval in pre-release-langflow.yml workflow 2024-04-08 18:27:06 -03:00
Gabriel Luiz Freitas Almeida
b8a5b0cb96 Update GitHub workflows to create releases for pre-release and main branches 2024-04-08 18:24:45 -03:00
Gabriel Luiz Freitas Almeida
cf4ca624b4
Update package versions in pyproject.toml and fix dependencies (#1643)
* Update package versions in pyproject.toml and fix dependencies

* Update Docker image tags in GitHub workflows and README.md
2024-04-08 17:18:23 -03:00
Gabriel Luiz Freitas Almeida
83c915916d
Add PythonREPLToolComponent to tools/__init__.py and create PythonREPLTool.py (#1639)
* re-add --fix

* Add PythonREPLToolComponent to tools/__init__.py and create PythonREPLTool.py

* Refactor PythonREPLToolComponent to use build_status_from_tool in PythonREPLTool.py

* Refactor model_specs imports in ChatLiteLLMSpecs.py

* Refactor imports in various files

* Refactor model_specs imports and class names in AnthropicLLMSpecs.py and AnthropicSpecs.py
2024-04-08 16:51:03 -03:00
Cristhian Zanforlin Lousa
6f52312fe9
Bugfix: Fix loop when auto_login = true (#1641)
🐛 (typesStore.ts): set loading to false when an error occurs during fetching types to prevent infinite loading state
2024-04-08 15:43:42 -03:00
Gabriel Luiz Freitas Almeida
4dfcbd59a0
Update README.md 2024-04-08 15:37:50 -03:00
Gabriel Luiz Freitas Almeida
cc62a1f665
Update repository URLs to use langflow-ai instead of logspace-ai (#1642)
* Update repository URLs to use langflow-ai instead of logspace-ai

* Update chat-widget.mdx to remove unnecessary imports and dependencies
2024-04-08 15:36:37 -03:00
Cristhian Zanforlin Lousa
452eb224d7
Enhanced Component Testing & General Test Fixes (#1585)
This pull request introduces comprehensive new tests for our components,
significantly improving our project's test coverage. In addition to the
new component tests, this PR addresses and resolves several issues that
were affecting our general test suite, enhancing its reliability and
efficiency.
2024-04-08 14:08:15 -03:00
Gabriel Luiz Freitas Almeida
edefbacefb Update flow names to use "Hello, World" instead of "Hello, world!" 2024-04-08 13:10:54 -03:00
cristhianzl
276dc09926 (playwright.config.ts): increase the number of workers from 2 to 3 to improve test parallelization
📝 (auto_login.spec.ts): remove unnecessary beforeEach hook and commented code
📝 (chat_io.spec.ts): remove unnecessary beforeEach hook and commented code
📝 (codeAreaModalComponent.spec.ts): remove unnecessary beforeEach hook and commented code
📝 (dragAndDrop.spec.ts): remove unnecessary beforeEach hook and commented code
📝 (flowPage.spec.ts): remove unnecessary beforeEach hook and commented code
📝 (inputComponent.spec.ts): remove unnecessary beforeEach hook and commented code
📝 (keyPairListComponent.spec.ts): remove unnecessary beforeEach hook and commented code
📝 (nestedComponent.spec.ts): remove unnecessary beforeEach hook and commented code
📝 (promptModalComponent.spec.ts): remove unnecessary beforeEach hook and commented code
📝 (saveComponents.spec.ts): remove unnecessary beforeEach hook and commented code
📝 (toggleComponent.spec.ts): remove unnecessary beforeEach hook and commented code
2024-04-08 12:58:00 -03:00
cristhianzl
357029865f merge fix 2024-04-08 12:56:28 -03:00
Gabriel Luiz Freitas Almeida
508f144450 correct deps definition 2024-04-08 12:22:04 -03:00
Gabriel Luiz Freitas Almeida
9a0d3b486a
Update package versions and add new dependencies (#1638)
* Add new dependencies to pyproject.toml

* Update package versions and add new dependencies

* Update langchain-openai version in pyproject.toml
2024-04-08 12:14:19 -03:00
Gabriel Luiz Freitas Almeida
a9cfaf7787
Fix formatting in issues page (#1628)
* Update Langflow CLI installation and usage instructions

* Fix wrong formatting
2024-04-05 17:07:43 -03:00
Gabriel Luiz Freitas Almeida
606d37bab2
Add possible installation issues page (#1627)
* Update Langflow CLI installation and usage instructions
2024-04-05 17:04:25 -03:00
Gabriel Luiz Freitas Almeida
10ecc81f66
Update package versions and refactor build project for distribution (#1626)
* Update package versions in pyproject.toml

* Merge remote-tracking branch 'origin/dev' into new_release

* Refactor build project for distribution in pre-release workflows

* Merge remote-tracking branch 'origin/dev' into new_release
2024-04-05 16:42:14 -03:00
Gabriel Luiz Freitas Almeida
eae2950137
Update package versions in pyproject.toml (#1625)
* Update package versions in pyproject.toml

* Merge remote-tracking branch 'origin/dev' into new_release
2024-04-05 16:40:22 -03:00
Gabriel Luiz Freitas Almeida
9ef3558a9c
Add version check before publishing to PyPI (#1624)
* Add version check before publishing to PyPI
2024-04-05 16:36:15 -03:00
Gabriel Luiz Freitas Almeida
03761cf44d
Update dependencies in pyproject.toml (#1617) 2024-04-05 16:22:18 -03:00
Sebastián Estévez
7fe7431fd2
Fix yaml link in docs (#1621) 2024-04-05 16:22:03 -03:00
Gabriel Luiz Freitas Almeida
5ed2c59c2a
Add version check and new version notice (#1616)
* Add version check and new version notice

* Add function to extract letter from pre-release version

* Update version banner and add package update notice

* Change log level from error to debug

* Refactor logging configuration and add InterceptHandler

* update banner

* Update launch.json path in .vscode directory
2024-04-05 16:20:17 -03:00
Gabriel Luiz Freitas Almeida
58d9086ce7
Update installation instructions for Langflow (#1623)
* Update installation instructions for Langflow

* Remove unused imports and fix broken links
2024-04-05 16:10:48 -03:00
Alex Leventer
381f3e82fb
Improve getting started instructions (#1622) 2024-04-05 16:07:56 -03:00
Gabriel Luiz Freitas Almeida
9b09156aa6
Update Dockerfile, docker-compose.yml, and add langflow 1.0-alpha tag (#1620)
* Update Dockerfile to use logspace/langflow:latest image

* Update docker-compose.yml with new version and add PostgreSQL service

* Add langflow 1.0-alpha tag
2024-04-05 14:39:51 -03:00
Gabriel Luiz Freitas Almeida
03503cbbb3 Update links in index.mdx 2024-04-05 11:41:13 -03:00
Gabriel Luiz Freitas Almeida
f01c03897b Update Langflow Space URL 2024-04-05 11:40:17 -03:00