mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-21 19:21:03 +02:00
Remove log cruft
This commit is contained in:
parent
c05ec25e39
commit
38652bdc3e
1 changed files with 0 additions and 6 deletions
|
|
@ -77,16 +77,10 @@ class Processor(LlmService):
|
||||||
json=request,
|
json=request,
|
||||||
) as response:
|
) as response:
|
||||||
|
|
||||||
print("GOT A SRESPONSE")
|
|
||||||
|
|
||||||
if response.status != 200:
|
if response.status != 200:
|
||||||
raise RuntimeError("Bad status: " + str(response.status))
|
raise RuntimeError("Bad status: " + str(response.status))
|
||||||
|
|
||||||
print("GOT A GOOD STATUS")
|
|
||||||
|
|
||||||
resp = await response.json()
|
resp = await response.json()
|
||||||
|
|
||||||
print("RESPONSE>", resp)
|
|
||||||
|
|
||||||
inputtokens = resp["usage"]["prompt_tokens"]
|
inputtokens = resp["usage"]["prompt_tokens"]
|
||||||
outputtokens = resp["usage"]["completion_tokens"]
|
outputtokens = resp["usage"]["completion_tokens"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue