mirror of
https://github.com/hanzoai/flow.git
synced 2026-10-17 01:29:18 +00:00
Document flow's API under /v1
Claude-Session: https://claude.ai/code/session_011i2AG9nwpiKUCVxAdDzYuU
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ base = os.environ.get("FLOW_URL") or os.environ.get("FLOW_SERVER_URL", "")
|
||||
flow_id = os.environ.get("FLOW_ID", "")
|
||||
api_key = os.environ.get("FLOW_API_KEY", "")
|
||||
|
||||
url = f"{base}/api/v1/run/{flow_id}?stream=false"
|
||||
url = f"{base}/v1/run/{flow_id}?stream=false"
|
||||
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ import os
|
||||
|
||||
import requests
|
||||
|
||||
url = f"{os.getenv('FLOW_SERVER_URL', '')}/api/v1/all"
|
||||
url = f"{os.getenv('FLOW_SERVER_URL', '')}/v1/all"
|
||||
|
||||
headers = {
|
||||
"accept": "application/json",
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ import os
|
||||
|
||||
import requests
|
||||
|
||||
url = f"{os.getenv('FLOW_SERVER_URL', '')}/api/v1/config"
|
||||
url = f"{os.getenv('FLOW_SERVER_URL', '')}/v1/config"
|
||||
|
||||
headers = {
|
||||
"accept": "application/json",
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ import os
|
||||
|
||||
import requests
|
||||
|
||||
url = f"{os.getenv('FLOW_SERVER_URL', '')}/api/v1/version"
|
||||
url = f"{os.getenv('FLOW_SERVER_URL', '')}/v1/version"
|
||||
|
||||
headers = {
|
||||
"accept": "application/json",
|
||||
|
||||
Reference in New Issue
Block a user