mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-26 10:59:28 +08:00
deploy: 8858b82085
This commit is contained in:
@ -23,8 +23,8 @@
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Sora:wght@550;600&display=swap">
|
||||
<script>!function(){window.semaphore=window.semaphore||[],window.ketch=function(){window.semaphore.push(arguments)};var e=document.createElement("script");e.type="text/javascript",e.src="https://global.ketchcdn.com/web/v3/config/datastax/langflow_org_web/boot.js",e.defer=e.async=!0,document.getElementsByTagName("head")[0].appendChild(e)}()</script>
|
||||
<script defer="true">!function(){const e=e=>{if(window.gtag&&e.purposes&&"analytics"in e.purposes&&"targeted_advertising"in e.purposes){const n=!0===e.purposes.analytics?"granted":"denied",t=!0===e.purposes.targeted_advertising?"granted":"denied",a={analytics_storage:n,ad_personalization:t,ad_storage:t,ad_user_data:t};window.gtag("consent","update",a)}};window.ketch&&window.ketch("on","consent",e)}()</script><link rel="stylesheet" href="/assets/css/styles.e756ed1e.css">
|
||||
<script src="/assets/js/runtime~main.c27ec185.js" defer="defer"></script>
|
||||
<script src="/assets/js/main.9e5db23c.js" defer="defer"></script>
|
||||
<script src="/assets/js/runtime~main.6a253553.js" defer="defer"></script>
|
||||
<script src="/assets/js/main.a53144de.js" defer="defer"></script>
|
||||
</head>
|
||||
<body class="navigation-with-keyboard">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"><defs>
|
||||
@ -150,7 +150,7 @@ If your flow is complex, try searching for the flow's name, which is typica
|
||||
If necessary, modify the payload for your flow.
|
||||
For example, if your flow doesn't have a <strong>Chat input</strong> component, you must modify the payload to provide the expected input for your flow.</p>
|
||||
<div class="ch-codeblock not-prose" data-ch-theme="github-dark"><div class="ch-code-wrapper ch-code" data-ch-measured="false"><code class="ch-code-scroll-parent"><br><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span>curl --request POST \</span></div></div><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span> --url 'http://localhost:7860/api/v1/run/e4167236-938f-4aca-845b-21de3f399858?stream=true' \</span></div></div><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span> --header 'Content-Type: application/json' \</span></div></div><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span> --data '{</span></div></div><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span> "input_value": "Tell me about Charizard.",</span></div></div><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span> "output_type": "chat",</span></div></div><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span> "input_type": "chat",</span></div></div><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span> "session_id": "charizard_test_request"</span></div></div><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span>}'</span></div></div><br></code></div></div>
|
||||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>About this example</summary><div><div class="collapsibleContent_i85q"><p>This command runs the Pokédex template flow.
|
||||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>About this example</summary><div><div class="collapsibleContent_i85q"><p>This command runs the <strong>Pokédex</strong> template flow.
|
||||
It provides chat input about a specific Pokémon, uses an optional custom <code>session_id</code>, and enables response streaming with <code>?stream=true</code>.</p><p>The default <a href="/session-id">session ID</a> is the flow ID.
|
||||
Custom session IDs can help isolate unique conversation threads to keep the LLM's context clean, and they can help identify specific conversations in flow logs to make debugging easier.</p><p>This command uses response streaming because the Pokédex flow can return a large amount of text.
|
||||
To use batching, set <code>?stream=false</code>.</p></div></div></details>
|
||||
|
||||
Reference in New Issue
Block a user