Commit graph

3,876 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
3ad2919ff3
Fix API not passing input_value to Chat Input (#1749)
* Fix API not returning values when stream is True in a component

Fixes #1744

* Update Graph.from_payload method to include user_id parameter
2024-04-18 11:47:45 -03:00
Phil Miesle
b04caf2fca
Feature/astra retriever (#1741)
enable AstraDB as Retriever
2024-04-18 10:40:36 -03:00
Gabriel Luiz Freitas Almeida
ed84307a50 Update LCModelComponent to include build_status_message method 2024-04-17 18:09:49 -03:00
Gabriel Luiz Freitas Almeida
46291e8fa4 Update gunicorn version to 22.0.0 in pyproject.toml 2024-04-17 00:37:26 -03:00
Gabriel Luiz Freitas Almeida
374508cf18 Update package versions in pyproject.toml and poetry.lock files 2024-04-16 14:03:53 -03:00
Gabriel Luiz Freitas Almeida
42e88b7a23
Add Experimental Agent Component (#1705)
* Update langflow base prompts API utils and add ToolCallingAgentComponent

* Update return type annotations in AzureOpenAIModel.py and ChatLiteLLMModel.py

* Update langchainhub package version to 0.1.15

* Update langflow base prompts API utils and add ToolCallingAgentComponent

* Add AgentComponent to langflow experimental components

* Update prompt variable name to user_prompt in ToolCallingAgentComponent.py

* Update prompt variable name to system_message in AgentComponent.py

* Update system_message variable name in XMLAgentComponent and ToolCallingAgentComponent

* Update prompt variable name to user_prompt in ToolCallingAgentComponent.py
2024-04-16 13:57:05 -03:00
Gabriel Luiz Freitas Almeida
dd7e5a7ab5 Add from_lc_message method to Record class in schema.py 2024-04-16 13:22:31 -03:00
Gabriel Luiz Freitas Almeida
0d75e2905f
Refactor process method to align it with endpoint logic (#1700)
* Refactor Graph class to improve parallel processing in base.py

* Fix type hint for run_id parameter in set_run_id method
2024-04-15 08:59:27 -03:00
Gabriel Luiz Freitas Almeida
05104117ba
Update nullable attribute for created_at field in variable table (#1697)
* Update nullable attribute for created_at field in variable table

* Update package versions in pyproject.toml and poetry.lock files
2024-04-13 11:23:42 -03:00
Gabriel Luiz Freitas Almeida
cc14c51238
Update created_at field in api_key/crud.py and api_key/model.py (#1698)
* Update created_at field in api_key/crud.py and api_key/model.py
2024-04-13 11:21:24 -03:00
Gabriel Luiz Freitas Almeida
23f374db71
Fix migration problem (#1694)
* Update Dockerfiles to include user creation and use --user flag for pip install

* Add JavaScriptMIMETypeMiddleware to main.py

* Update constants.py and run.py files

* Update package versions in poetry.lock and pyproject.toml files

* Refactor Dockerfile to optimize image building process

* Fix import error in main.py

* Update Dockerfiles to use logspace/langflow image

* Fix decryption error handling in get_user_store_api_key function

* Add error logging to JavaScriptMIMETypeMiddleware in main.py

* Fix error logging in main.py

* Fix error logging and datetime type in database migrations

* Update openai component

* Update package versions for boto3 and botocore
2024-04-12 18:36:54 -03:00
Eric Dodémont
7022c81550
Update OpenAIModel.py: new model (#1689)
Add gpt-4-turbo-2024-04-09 new OpenAI model.
2024-04-12 17:09:49 -03:00
Gabriel Luiz Freitas Almeida
06ea4529df
Check Store API key (#1693)
* Update Dockerfiles to include user creation and use --user flag for pip install

* Add JavaScriptMIMETypeMiddleware to main.py

* Update constants.py and run.py files

* Update package versions in poetry.lock and pyproject.toml files

* Refactor Dockerfile to optimize image building process

* Fix import error in main.py

* Update Dockerfiles to use logspace/langflow image

* Fix decryption error handling in get_user_store_api_key function

* Add error logging to JavaScriptMIMETypeMiddleware in main.py

* Merge
2024-04-12 17:08:41 -03:00
Gabriel Luiz Freitas Almeida
1a021321a9
Update Dockerfiles, main.py, constants.py, and package versions (#1691)
* Update Dockerfiles to include user creation and use --user flag for pip install

* Add JavaScriptMIMETypeMiddleware to main.py

* Update constants.py and run.py files

* Update package versions in poetry.lock and pyproject.toml files

* Refactor Dockerfile to optimize image building process

* Fix import error in main.py

* Update Dockerfiles to use logspace/langflow image
2024-04-12 16:39:22 -03:00
Gabriel Luiz Freitas Almeida
efda40d634 Update package versions in pyproject.toml and poetry.lock files 2024-04-12 15:10:08 -03:00
Gabriel Luiz Freitas Almeida
704da1d4de Update log file handling and error handling in logger.py 2024-04-12 14:40:04 -03:00
Gabriel Luiz Freitas Almeida
6393b87842 Update datetime type for created_at and updated_at fields in apikey and variable tables 2024-04-12 14:01:48 -03:00
Gabriel Luiz Freitas Almeida
17f04d8b78 Update nullable attribute for created_at field in variable table 2024-04-12 12:25:43 -03:00
Gabriel Luiz Freitas Almeida
e73754b391
Update database file path handling and server shutdown message (#1686)
* Update database file path handling in base.py and version.py

* Update server.py to handle SIGINT signal in LangflowUvicornWorker

* Add shutdown message when shutting down Langflow in main.py

* Update datetime type for created_at and updated_at fields in apikey and variable tables

* Update package versions in pyproject.toml and poetry.lock files

* Update package versions in pyproject.toml and poetry.lock files

* Fix import error in base.py

* Refactor database file path handling in base.py

* Update unit test command in python_test.yml
2024-04-11 17:13:00 -03:00
Gabriel Luiz Freitas Almeida
f693fa8f9e Update package versions in pyproject.toml and poetry.lock files 2024-04-11 13:02:07 -03:00
Gabriel Luiz Freitas Almeida
8fa8781a0f
Update langflow base prompts API utils (#1682) 2024-04-11 12:47:31 -03:00
Gabriel Luiz Freitas Almeida
e582535bb0
Update package versions, workflows, LLMChain and Graph sorting (#1674)
* Update package versions in pyproject.toml and poetry.lock files

* Update poetry caching action and workflows

* Update poetry caching action and workflows

* Refactor LLMChainComponent build method in LLMChain.py

* Update poetry install command in Makefile

* Refactor Makefile to remove redundant install_backend targets

* Fix codespell issues in project

* Update package versions and dependencies

* Fix import order in chat_io.spec.ts, headerComponent/index.tsx, and chatMessage/index.tsx

* Update ruff command in Makefile and fix poetry cache reuse in Dockerfile

* Refactor ServiceManager class in manager.py to handle default service factories

* Fix typo in DOWNLOAD_WEBHOOK_URL variable assignment

* Refactor cache_service tests in test_cache_manager.py

* Add pytest-profiling

* Update Makefile to run unit tests with parallel execution

* Refactor ServiceManager class in manager.py to handle default service factories

* Refactor node_name condition in Graph class to use "Listen" instead of "GetNotified"

* Refactor file paths in tests/conftest.py for better readability and maintainability

* Sort vertices in each layer by dependency in Graph class

* Refactor variable declaration in SessionService class to use type hinting

* Refactor make tests command in python_test.yml workflow

* Refactor file paths in tests/conftest.py for better readability and maintainability

* Refactor imports in tests/conftest.py to include sqlmodel.Session and related dependencies

* Refactor file paths in tests/conftest.py to include available files in error message

* Refactor file paths in tests/conftest.py to include available files in error message

* Refactor file paths in tests/conftest.py to fix typo in BasicChatwithPromptAndHistory.json
2024-04-11 12:20:56 -03:00
Gabriel Luiz Freitas Almeida
836ac08d80
Update datetime handling in ApiKey and Variable models (#1673)
* Update datetime handling in ApiKey and Variable models

* Refactor test_login_successful function in test_login.py

* Fix nullable attribute for created_at and updated_at fields in Variable model
2024-04-10 23:04:10 -03:00
Gabriel Luiz Freitas Almeida
4ee9b72634
Fix various issues and refactor code (#1671)
* Update setup_mode to "Sync" in AstraDBVectorStoreComponent

* Fix search_kwargs default value in PineconeSearch and QdrantSearch components

* Update Playwright test and ChatMessage component in chat_io.spec.ts and chatMessage/index.tsx

* Refactor test_pickle_each_vertex function in test_graph.py

* Refactor database service to improve performance and readability
2024-04-10 22:40:21 -03:00
Gabriel Luiz Freitas Almeida
3478d4c05e
Update setup_mode to "Sync" in AstraDBVectorStoreComponent (#1670)
* Update setup_mode to "Sync" in AstraDBVectorStoreComponent

* Fix search_kwargs default value in PineconeSearch and QdrantSearch components
2024-04-10 21:09:26 -03:00
Gabriel Luiz Freitas Almeida
5e5ae3911d
Fix nullable attribute for created_at and updated_at fields in Variable model (#1669)
* Fix nullable attribute for created_at field in variable table

* Update package versions in pyproject.toml and poetry.lock files

* Fix nullable attribute for created_at and updated_at fields in Variable model

* Refactor VariableService class to use VariableCreate model for creating variables
2024-04-10 20:56:46 -03:00
Gabriel Luiz Freitas Almeida
cc4d8c8326 Update package versions in pyproject.toml and poetry.lock files 2024-04-10 20:55:50 -03:00
Gabriel Luiz Freitas Almeida
305ee02981 Update maintainers list in pyproject.toml 2024-04-10 17:34:38 -03:00
Gabriel Luiz Freitas Almeida
e9faba0f47 Update package versions in pyproject.toml and poetry.lock files 2024-04-10 17:18:48 -03:00
Gabriel Luiz Freitas Almeida
db01d7e589 New lock 2024-04-10 17:02:50 -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
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
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
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
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
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
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
cristhianzl
357029865f merge fix 2024-04-08 12:56:28 -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
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
03761cf44d
Update dependencies in pyproject.toml (#1617) 2024-04-05 16:22:18 -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
Phil Miesle
528f7ddb90
issue 1614: fix os path separator dependency (#1615) 2024-04-05 10:31:02 -03:00