mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 16:36:21 +02:00
Fix/llms (#366)
* Fix LMStudio, cache documents with tg-load-sample-documents * Fix Mistral
This commit is contained in:
parent
54e475fa3a
commit
d0da122bed
6 changed files with 25 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