Skip to content

Commit

Permalink
Promptaufbau umgestellt
Browse files Browse the repository at this point in the history
  • Loading branch information
TechPrototyper committed Apr 10, 2024
1 parent 6b7191c commit 04a6e79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions API/azure_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,15 @@ async def chat(self, user_name: str, user_email: str, user_prompt: str):
thread_id = await self.get_or_create_thread(user_email)
logging.info(f"Thread ID: {thread_id}")

u = UserThreads()
transscript_allowed = await u.get_extended_events(user_email)

# Create prompt with user details
time_stamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
logging.info(f"Timestamp: {time_stamp}")
modified_prompt = f"Mein Name: {user_name}\nDatum und Uhrzeit: {time_stamp}\nMitlesen erlaubt: {str(transscript_allowed)}\nMein Prompt: {user_prompt}"
logging.info(f"Modified Prompt: created.")

u = UserThreads()
transscript_allowed = await u.get_extended_events(user_email)

if transscript_allowed == 1:
details = {"email": user_email, "Name: ": user_name,"prompt": user_prompt}
async with EventGridPublisher() as publisher:
Expand Down

0 comments on commit 04a6e79

Please sign in to comment.