mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-16 16:51:02 +02:00
Slight tweak to AzureAI
This commit is contained in:
parent
abe023bd33
commit
c92d7cc5a1
1 changed files with 2 additions and 1 deletions
|
|
@ -64,6 +64,7 @@ class Processor(ConsumerProducer):
|
|||
self.token = token
|
||||
self.temperature = temperature
|
||||
self.max_output = max_output
|
||||
self.model = "AzureAI"
|
||||
|
||||
def build_prompt(self, system, content):
|
||||
|
||||
|
|
@ -140,7 +141,7 @@ class Processor(ConsumerProducer):
|
|||
|
||||
print("Send response...", flush=True)
|
||||
|
||||
r = TextCompletionResponse(response=resp, error=None, in_token=inputtokens, out_token=outputtokens, model="AzureAI")
|
||||
r = TextCompletionResponse(response=resp, error=None, in_token=inputtokens, out_token=outputtokens, model=self.model)
|
||||
self.producer.send(r, properties={"id": id})
|
||||
|
||||
except TooManyRequests:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue