fix: replace instances of 127.0.0.1 to localhost (#8536)
* Replace instances of 127.0.0.1 to localhost * fix some replace-all issues * fix some replace-all issues * update starterprojects * Upgrade uvlock
This commit is contained in:
parent
5c38d0223d
commit
b77351331d
33 changed files with 3959 additions and 5686 deletions
|
|
@ -71,7 +71,7 @@ The `input` string is the message you're sending to your flow.
|
|||
```tsx
|
||||
import { LangflowClient } from "@datastax/langflow-client";
|
||||
|
||||
const baseUrl = "http://127.0.0.1:7860";
|
||||
const baseUrl = "http://localhost:7860";
|
||||
const client = new LangflowClient({ baseUrl });
|
||||
|
||||
async function runFlow() {
|
||||
|
|
@ -148,7 +148,7 @@ Replace `baseUrl` and `flowId` with values from your deployment.
|
|||
```tsx
|
||||
import { LangflowClient } from "@datastax/langflow-client";
|
||||
|
||||
const baseUrl = "http://127.0.0.1:7860";
|
||||
const baseUrl = "http://localhost:7860";
|
||||
const client = new LangflowClient({ baseUrl });
|
||||
|
||||
async function runFlow() {
|
||||
|
|
@ -264,7 +264,7 @@ Replace `baseUrl` and `flowId` with values from your deployment.
|
|||
```tsx
|
||||
import { LangflowClient } from "@datastax/langflow-client";
|
||||
|
||||
const baseUrl = "http://127.0.0.1:7863";
|
||||
const baseUrl = "http://localhost:7863";
|
||||
const flowId = "86f0bf45-0544-4e88-b0b1-8e622da7a7f0";
|
||||
|
||||
async function runFlow(client: LangflowClient) {
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ For more information, see [Session ID](/session-id).
|
|||
|
||||
```bash
|
||||
curl --request POST \
|
||||
--url 'http://127.0.0.1:7860/api/v1/run/e4167236-938f-4aca-845b-21de3f399858?stream=false' \
|
||||
--url 'http://localhost:7860/api/v1/run/e4167236-938f-4aca-845b-21de3f399858?stream=false' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data '{
|
||||
"input_value": "Tell me about Charizard please",
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ If you set a custom session ID in a payload, all downstream components use the u
|
|||
|
||||
```
|
||||
curl --request POST \
|
||||
--url 'http://127.0.0.1:7860/api/v1/run/$FLOW_ID' \
|
||||
--url 'http://localhost:7860/api/v1/run/$FLOW_ID' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data '{
|
||||
"input_value": "Hello",
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ To connect the **Webhook** to a **Parser** component to view and parse your data
|
|||
This example uses `id`, `name`, and `email` strings.
|
||||
Replace **YOUR_FLOW_ID** with your flow ID.
|
||||
```text
|
||||
curl -X POST "http://127.0.0.1:7860/api/v1/webhook/YOUR_FLOW_ID" \
|
||||
curl -X POST "http://localhost:7860/api/v1/webhook/YOUR_FLOW_ID" \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{"id": "12345", "name": "alex", "email": "alex@email.com"}'
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue