Skip to content

Commit

Permalink
Kleiner Bug beim Event-Versand, fehlende Parameter beim Run Watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
TechPrototyper committed Apr 11, 2024
1 parent ae51c44 commit 4a41fef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion API/azure_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ async def chat(self, user_name: str, user_email: str, user_prompt: str):

# We've added a message to the thread, and now we'll order the LLM to work on the dialog by starting a run
# We may have to do things in between such as executing local functions etc.
http_status, response_body = await self.create_and_monitor_run(thread_id)
http_status, response_body = await self.create_and_monitor_run(thread_id, user_name, user_email, transscript_allowed)

# And return hopefully something that makes sense to the user
return http_status, response_body
Expand Down
2 changes: 1 addition & 1 deletion API/event_grid_publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async def send_event(self, event_type: str, details: dict):

try:
# ... and send it
await self.client.send([event.to_cloudevent()])
await self.client.send([event])
logging.info(f"EventGridPublisher: {event_type} Event sent to grid.")

except Exception as e:
Expand Down

0 comments on commit 4a41fef

Please sign in to comment.