trustgraph/tests/test-llm
Cyber MacGeddon 1822ca395f Revert "Feature/configure flows (#345)"
This reverts commit a9197d11ee.
2025-04-25 19:02:08 +01:00

16 lines
284 B
Python
Executable file

#!/usr/bin/env python3
import pulsar
from trustgraph.clients.llm_client import LlmClient
llm = LlmClient(pulsar_host="pulsar://localhost:6650")
system = "You are a lovely assistant."
prompt="Write a funny limerick about a llama"
resp = llm.request(system, prompt)
print(resp)