mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-22 03:31:02 +02:00
Fix LMStudio, cache documents with tg-load-sample-documents
This commit is contained in:
parent
54e475fa3a
commit
ca44894b44
4 changed files with 21 additions and 7 deletions
|
|
@ -14,7 +14,7 @@ default_url = os.getenv("TRUSTGRAPH_URL", 'http://localhost:8088/')
|
|||
|
||||
def query(url, flow_id, system, prompt):
|
||||
|
||||
api = Api(url).flow().id(flow_id).
|
||||
api = Api(url).flow().id(flow_id)
|
||||
|
||||
resp = api.text_completion(system=system, prompt=prompt)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue