Replies: 3 comments 1 reply
-
Hi @gliterin1! I'm here to help you with your langflow API question. Let's figure this out together! Your API request to Langflow version 1.0 always returns the same answer because the Here is the relevant part of the code: @router.post("/run/{flow_id}", response_model=RunResponse, response_model_exclude_none=True)
async def simplified_run_flow(
db: Annotated[Session, Depends(get_session)],
flow_id: str,
input_request: SimplifiedAPIRequest = SimplifiedAPIRequest(),
stream: bool = False,
api_key_user: User = Depends(api_key_security),
session_service: SessionService = Depends(get_session_service),
):
...
inputs = [
InputValueRequest(components=[], input_value=input_request.input_value, type=input_request.input_type)
]
...
task_result, session_id = await run_graph_internal(
graph=graph,
flow_id=flow_id,
session_id=input_request.session_id,
inputs=inputs,
outputs=outputs,
artifacts=artifacts,
session_service=session_service,
stream=stream,
)
return RunResponse(outputs=task_result, session_id=session_id) To ensure different responses, you need to provide different values for |
Beta Was this translation helpful? Give feedback.
-
@dosu, can you send the curl code please? |
Beta Was this translation helpful? Give feedback.
-
Hi! 👋 We are using other channels as our official means of communication with users. We apologize for the delayed response. Thank you for your understanding. Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hello, i am trying to access langflow via api, version 1.0
here is the body i send
{
"input_value": "My question",
"output_type": "chat",
"input_type": "chat",
"tweaks": {},
"output_component" : "ChatOutput-JqvAo",
"session_id": "6c12f9aa-98dd-4e66-9a20-dc68b48bd2a8:a90a230be98b7159776557cc132ad0c7ca26d3a9436ceea95660a9e1a393ad2b"
}
The problem is that it always return the same answer.
Beta Was this translation helpful? Give feedback.
All reactions