mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 16:36:21 +02:00
Feature/flow enable api gateway (#356)
* Tweak timeouts, reduce stop time for publishers / subscribers * More APIs working as flow endpoint
This commit is contained in:
parent
027b52cd7c
commit
450f664b1b
19 changed files with 303 additions and 76 deletions
|
|
@ -4,7 +4,7 @@ import requests
|
|||
import json
|
||||
import sys
|
||||
|
||||
url = "http://localhost:8088/api/v1/"
|
||||
url = "http://localhost:8088/api/v1/flow/0000/embeddings"
|
||||
|
||||
############################################################################
|
||||
|
||||
|
|
@ -13,7 +13,7 @@ input = {
|
|||
}
|
||||
|
||||
resp = requests.post(
|
||||
f"{url}embeddings",
|
||||
url,
|
||||
json=input,
|
||||
)
|
||||
|
||||
|
|
@ -25,4 +25,3 @@ if "error" in resp:
|
|||
|
||||
print(resp["vectors"])
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue