fix: add chat_service to build_vertex method call so freeze works (#3175)

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-08-02 15:10:07 -03:00 committed by GitHub
commit e8f2e018e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,13 +15,13 @@ from starlette.types import Receive
from langflow.api.utils import (
build_and_cache_graph_from_data,
build_graph_from_data,
build_graph_from_db,
build_graph_from_db_no_cache,
format_elapsed_time,
format_exception_message,
get_top_level_vertices,
parse_exception,
build_graph_from_db_no_cache,
build_graph_from_data,
)
from langflow.api.v1.schemas import (
FlowDataRequest,
@ -232,7 +232,7 @@ async def build_flow(
artifacts,
vertex,
) = await graph.build_vertex(
chat_service=None,
chat_service=chat_service,
vertex_id=vertex_id,
user_id=current_user.id,
inputs_dict=inputs.model_dump() if inputs else {},