diff --git a/404.html b/404.html index 28023e73d6..7d542a19a2 100644 --- a/404.html +++ b/404.html @@ -21,7 +21,7 @@ - + diff --git a/agents-overview.html b/agents-overview.html index 8014b923e4..f8f63772b8 100644 --- a/agents-overview.html +++ b/agents-overview.html @@ -21,7 +21,7 @@ - + diff --git a/agents-tool-calling-agent-component.html b/agents-tool-calling-agent-component.html index b2f042b693..78c52c9538 100644 --- a/agents-tool-calling-agent-component.html +++ b/agents-tool-calling-agent-component.html @@ -21,7 +21,7 @@ - + diff --git a/api-reference-api-examples.html b/api-reference-api-examples.html index 90d66192ef..5a67a04182 100644 --- a/api-reference-api-examples.html +++ b/api-reference-api-examples.html @@ -21,7 +21,7 @@ - + @@ -37,15 +37,15 @@

This page provides examples and practices for managing Langflow using the Langflow API.

The Langflow API's OpenAPI spec can be viewed and tested at your Langflow deployment's docs endpoint. -For example, http://127.0.0.1:7860/docs.

+For example, http://localhost:7860/docs.

Export values

You might find it helpful to set the following environment variables in your terminal.

The examples in this guide use environment variables for these values.

-

_10
export LANGFLOW_URL="http://127.0.0.1:7860"

+

_10
export LANGFLOW_URL="http://localhost:7860"

Manage files

Upload, store, and manage files in Langflow's File management system.

Uploading files to the File management system keeps your files in a central location, and allows you to re-use files across flows without repeated manual uploads.

Upload a file

-

The File management system is available at the /files URL. For example, if you're running Langflow at the default http://127.0.0.1:7860 address, the File management system is located at http://127.0.0.1:7860/files.

+

The File management system is available at the /files URL. For example, if you're running Langflow at the default http://localhost:7860 address, the File management system is located at http://localhost:7860/files.

To upload a file from your local machine:

    -
  1. From the My Files window at http://127.0.0.1:7860/files, click Upload.
  2. +
  3. From the My Files window at http://localhost:7860/files, click Upload.
  4. Select the file to upload. The file is uploaded to Langflow.
diff --git a/concepts-flows.html b/concepts-flows.html index 8152249220..1f5e3912e9 100644 --- a/concepts-flows.html +++ b/concepts-flows.html @@ -21,7 +21,7 @@ - + diff --git a/concepts-objects.html b/concepts-objects.html index 1e727f63fa..078ae213ee 100644 --- a/concepts-objects.html +++ b/concepts-objects.html @@ -21,7 +21,7 @@ - + diff --git a/concepts-overview.html b/concepts-overview.html index 04b9022e82..cb00a4280d 100644 --- a/concepts-overview.html +++ b/concepts-overview.html @@ -21,7 +21,7 @@ - + diff --git a/concepts-playground.html b/concepts-playground.html index c76ddeeba5..0343fb5aeb 100644 --- a/concepts-playground.html +++ b/concepts-playground.html @@ -21,7 +21,7 @@ - + @@ -55,7 +55,7 @@ By default, if the session_id value is empty, it is set to the same

The session_id value can be configured in the Advanced Settings of the Chat Input and Chat Output components.

To have more than one session in a single flow, pass a specific Session ID to a flow with the session_id parameter in the URL. All the components in the flow will automatically use this session_id value.

To post a message to a flow with a specific Session ID with curl, enter the following command:

-

_10
curl -X POST "http://127.0.0.1:7860/api/v1/run/$FLOW_ID" \
_10
-H 'Content-Type: application/json' \
_10
-d '{
_10
"session_id": "custom_session_123",
_10
"input_value": "message",
_10
"input_type": "chat",
_10
"output_type": "chat"
_10
}'

+

_10
curl -X POST "http://localhost:7860/api/v1/run/$FLOW_ID" \
_10
-H 'Content-Type: application/json' \
_10
-d '{
_10
"session_id": "custom_session_123",
_10
"input_value": "message",
_10
"input_type": "chat",
_10
"output_type": "chat"
_10
}'

Check your flow's Playground. In addition to the messages stored for the Default Session, a new session is started with your custom Session ID.

Work with images in the Playground

The Playground supports handling images in base64 format, allowing you to work with image data directly in your flows.

@@ -74,7 +74,7 @@ By default, if the session_id value is empty, it is set to the same
  • Programmatic Input: Send base64-encoded images through the API.
  • This example sends a base64-encoded image to the Playground using curl:

    -

    _10
    curl -X POST "http://127.0.0.1:7860/api/v1/run/$FLOW_ID" \
    _10
    -H 'Content-Type: application/json' \
    _10
    -d '{
    _10
    "session_id": "custom_session_123",
    _10
    "input_value": "What is in this image?",
    _10
    "input_type": "chat",
    _10
    "output_type": "chat",
    _10
    "files": ["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."]
    _10
    }'

    +

    _10
    curl -X POST "http://localhost:7860/api/v1/run/$FLOW_ID" \
    _10
    -H 'Content-Type: application/json' \
    _10
    -d '{
    _10
    "session_id": "custom_session_123",
    _10
    "input_value": "What is in this image?",
    _10
    "input_type": "chat",
    _10
    "output_type": "chat",
    _10
    "files": ["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."]
    _10
    }'

    The image is displayed in the chat interface and can be processed by your flow components.