mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-06 20:02:11 +02:00
Fix OpenAI API usage
This commit is contained in:
parent
d94f730dfd
commit
77541330bd
1 changed files with 2 additions and 2 deletions
|
|
@ -80,10 +80,10 @@ class Processor(ConsumerProducer):
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
print(resp, flush=True)
|
print(resp.choices[0].message.content, flush=True)
|
||||||
|
|
||||||
print("Send response...", flush=True)
|
print("Send response...", flush=True)
|
||||||
r = TextCompletionResponse(response=resp)
|
r = TextCompletionResponse(response=resp.choices[0].message.content)
|
||||||
self.send(r, properties={"id": id})
|
self.send(r, properties={"id": id})
|
||||||
|
|
||||||
print("Done.", flush=True)
|
print("Done.", flush=True)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue