Remove log cruft (#398)

This commit is contained in:
cybermaggedon 2025-05-27 23:12:06 +01:00 committed by GitHub
parent 4ffb677488
commit 8120cfa803
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,16 +77,10 @@ class Processor(LlmService):
json=request,
) as response:
print("GOT A SRESPONSE")
if response.status != 200:
raise RuntimeError("Bad status: " + str(response.status))
print("GOT A GOOD STATUS")
resp = await response.json()
print("RESPONSE>", resp)
inputtokens = resp["usage"]["prompt_tokens"]
outputtokens = resp["usage"]["completion_tokens"]