Commit graph

4,939 commits

Author SHA1 Message Date
Lucas Oliveira
4cc7ae1f2a Fixed starter examples 2024-06-24 05:59:32 -07:00
Lucas Oliveira
d0e84c1dc8 Fixed starter examples 2024-06-24 05:59:32 -07:00
Gabriel Luiz Freitas Almeida
243a4e77f0 Update column types and bump version (#1653)
* Add logger import in script.py.mako

* Fix error handling during upgrade in alembic scripts

* Bump version to 0.6.14 in pyproject.toml

* Update column types in credential and api_key models

* Bump version to 0.6.15 in pyproject.toml
2024-06-24 05:56:11 -07:00
Gabriel Luiz Freitas Almeida
537cf93493 Add logger import and fix error handling during upgrade in alembic scripts (#1650)
* Add logger import in script.py.mako

* Fix error handling during upgrade in alembic scripts

* Bump version to 0.6.14 in pyproject.toml
2024-06-24 05:56:11 -07:00
Gabriel Luiz Freitas Almeida
5c09ff40d9 refactor: Update LangSmithTracer initialization error handling 2024-06-24 05:55:46 -07:00
Gabriel Luiz Freitas Almeida
7f94f5f5dd Update project documentation URLs to use the new domain 2024-06-24 05:43:40 -07:00
Gabriel Luiz Freitas Almeida
47940c8aa5 refactor: Update ToolCallingAgentComponent input_dict type to use Dict[str, str] for values 2024-06-24 05:42:46 -07:00
Gabriel Luiz Freitas Almeida
6f836c35b1 style: run ruff 2024-06-24 05:05:35 -07:00
Gabriel Luiz Freitas Almeida
0c75ba492d (SplitText.py): Add MessageTextInput import to support handling message input in langflow components. 2024-06-24 05:05:35 -07:00
italojohnny
5505d3fef6 adjust model temperature value 2024-06-24 05:05:10 -07:00
italojohnny
2530a25b71 set default temperature value 2024-06-24 05:05:10 -07:00
Gabriel Luiz Freitas Almeida
8c7063e0ec refactor: Update VectaraVectorStoreComponent to handle embedding input and add documents to vector store 2024-06-24 08:58:38 -03:00
Gabriel Luiz Freitas Almeida
914e741e29 fix: imports from TextInput to MessageTextInput 2024-06-24 04:56:40 -07:00
Gabriel Luiz Freitas Almeida
d18ac62476 chore: Update imports and remove unused components in deactivated and prototypes folders 2024-06-24 04:56:40 -07:00
Gabriel Luiz Freitas Almeida
c63bef8b78 remove comment 2024-06-24 04:56:40 -07:00
italojohnny
6ec39c8136 fix erros reported by mypy 2024-06-24 04:56:40 -07:00
Gabriel Luiz Freitas Almeida
d11e7c6fc5 fix: run ruff 2024-06-24 04:43:49 -07:00
Cezar Vasconcelos
783475e50d refactor: Update VectaraVectorStoreComponent to handle embedding input and add documents to vector store 2024-06-24 04:43:49 -07:00
Gabriel Luiz Freitas Almeida
70ffff186a refactor: Update ToolCallingAgent.py imports and type annotations 2024-06-24 04:38:39 -07:00
italojohnny
9a76bcbac2 move components from helpers to prototypes 2024-06-24 04:38:39 -07:00
italojohnny
0f5b0c0ac3 disable component litellm 2024-06-24 04:38:39 -07:00
italojohnny
55e4fe93c0 fix code 2024-06-24 04:38:39 -07:00
Rodrigo
4876f183a1 refactor: Remove unused import in IDGenerator.py 2024-06-24 04:38:39 -07:00
Rodrigo
0ddb11664f rearrange and remove components 2024-06-24 04:38:39 -07:00
anovazzi1
696c07991d update liteLLM icon 2024-06-24 04:28:48 -07:00
Nicolò Boschi
a158082175 use MessageTextInput 2024-06-24 04:04:36 -07:00
Nicolò Boschi
554aed4e35 fixes and refactory 2024-06-24 04:04:36 -07:00
Nicolò Boschi
6d92b38167 fixes and refactory 2024-06-24 04:04:36 -07:00
Nicolò Boschi
8f31291d97 fixes and refactory 2024-06-24 04:04:36 -07:00
Nicolò Boschi
c8fc1e6dee fix 2024-06-24 04:04:36 -07:00
Nicolò Boschi
48fd05311f components: add astra vectorize 2024-06-24 04:04:36 -07:00
vasconceloscezar
26e68cdd33 Apply Ruff formatting 2024-06-24 03:58:47 -07:00
Cezar Vasconcelos
26a028de2e fix: Update MistralModel.py with default values for inputs 2024-06-24 03:58:47 -07:00
Gabriel Luiz Freitas Almeida
2b587203ee refactor: Update pyproject.toml version to 0.0.75 2024-06-23 22:48:37 -03:00
Gabriel Luiz Freitas Almeida
77b7d8d626 refactor: Update Graph.from_payload to include flow name
This commit updates the `Graph.from_payload` method in the `endpoints.py` file to include the `flow_name` parameter. This change ensures that the `Graph` object is created with the correct flow name, which is necessary for proper functionality. By passing the `flow.name` value to the `Graph.from_payload` method, we ensure that the `graph` object is initialized correctly with the associated flow name. This improvement enhances the accuracy and reliability of the code.
2024-06-23 22:48:36 -03:00
Gabriel Luiz Freitas Almeida
ea28e8bd06 feat: Update welcome panel with telemetry information
The welcome panel in the `__main__.py` module has been updated to include information about telemetry data collection. This change adds a new line of text explaining that anonymous usage data is collected to improve Langflow, and provides instructions on how to opt-out by setting the `DO_NOT_TRACK` environment variable to `true`.
2024-06-23 18:38:58 -07:00
Gabriel Luiz Freitas Almeida
e2b56dd125 feat: Update PlaygroundPayload componentCount field to be nullable
The `PlaygroundPayload` class in the `telemetry/schema.py` module has been updated to make the `componentCount` field nullable by setting its default value to `None`. This change allows for more flexibility when handling the `componentCount` data in the telemetry service.
2024-06-23 18:38:58 -07:00
Gabriel Luiz Freitas Almeida
b5a0a303ba feat: Add components_count variable to retrieve_vertices_order function
This commit adds the `components_count` variable to the `retrieve_vertices_order` function in `chat.py`. The `components_count` variable is initialized as `None` and will be used for further processing within the function.
2024-06-23 18:38:58 -07:00
Gabriel Luiz Freitas Almeida
56290ceff4 🔧 (endpoints.py): remove duplicate declaration of background_tasks parameter in simplified_run_flow function definition 2024-06-23 18:38:58 -07:00
Gabriel Luiz Freitas Almeida
6577a91c59 (chat.py): Add telemetry service to log playground and component data for monitoring and debugging purposes. 2024-06-23 18:38:58 -07:00
Gabriel Luiz Freitas Almeida
fdee73f63c feat: Add TelemetryService and log package run time
This commit adds the `TelemetryService` class and updates the code in `endpoints.py` to log the run time of package execution. The `TelemetryService` is responsible for handling telemetry-related functionality, including logging package run time. This addition enables the application to collect and analyze telemetry data, providing insights into the performance of package execution.
2024-06-23 18:38:58 -07:00
Gabriel Luiz Freitas Almeida
35f2e62385 feat: Add TelemetryService schema and service
The code changes introduce the `TelemetryService` schema and service in the `langflow.services.telemetry` module. This addition enables the application to collect and analyze telemetry data.
2024-06-23 18:38:58 -07:00
Gabriel Luiz Freitas Almeida
94be16eb43 feat: Add datetime tracking to TelemetryService shutdown 2024-06-23 18:38:58 -07:00
Gabriel Luiz Freitas Almeida
d08b9bfd3d feat: Add arch and autoLogin fields to VersionPayload
The VersionPayload class in the TelemetryService module has been updated to include the arch field for architecture information and the autoLogin field to indicate whether auto login is enabled. This change enhances the telemetry data collected by the application.
2024-06-23 18:38:58 -07:00
Gabriel Luiz Freitas Almeida
f29dcb9489 feat: Add TelemetryService and start telemetry in main.py
The code changes in `main.py` add the `get_telemetry_service()` function call to start telemetry service. This change enables the application to collect and analyze telemetry data.
2024-06-23 18:38:58 -07:00
Gabriel Luiz Freitas Almeida
609b99e9f3 feat: Add TelemetryService and TelemetryServiceFactory
This commit adds the `TelemetryService` class and `TelemetryServiceFactory` class to the `langflow.services.telemetry` module. The `TelemetryService` is responsible for handling telemetry-related functionality, while the `TelemetryServiceFactory` is used to create instances of the `TelemetryService` class. This addition enables the application to collect and analyze telemetry data.
2024-06-23 18:38:58 -07:00
Gabriel Luiz Freitas Almeida
597d1334b8 📝 (base.py): update comments for cache_type and variable_store attributes for clarity
📝 (base.py): add new attributes backend_only and do_not_track with their respective descriptions
📝 (base.py): add telemetry_base_url attribute with default value
2024-06-23 18:38:58 -07:00
Gabriel Luiz Freitas Almeida
d7b1028a43 (langflow/__main__.py): introduce setting "backend_only" in settings service to control backend behavior 2024-06-23 18:38:58 -07:00
Gabriel Luiz Freitas Almeida
10eaa77399 refactor: Update get_version endpoint to use get_version_info utility function
The get_version endpoint in the API router has been updated to use the get_version_info utility function from langflow.utils.version. This change improves code organization and maintainability by centralizing the version retrieval logic.
2024-06-23 18:38:58 -07:00
Gabriel Luiz Freitas Almeida
0f5810928d chore: Update package versions in pyproject.toml files 2024-06-23 18:35:21 -07:00