Skip to content

Commit

Permalink
🔥 update generator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
PitButtchereit committed May 31, 2024
1 parent 5056dc1 commit afb7998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracex_project/patient_journey_generator/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get_date(start="01/01/2020", end="01/09/2023"):
def get_life_circumstances(sex):
"""Generate life circumstances by using the OpenAI API."""
messages = Prompt.objects.get(name="CREATE_PATIENT_JOURNEY_LIFE_CIRCUMSTANCES").text
messages = messages.replace("<SEX>", sex)
messages[0]["content"] = messages[0]["content"].replace("<SEX>", sex)
life_circumstances = u.query_gpt(messages=messages, max_tokens=100, temperature=1)

return life_circumstances

0 comments on commit afb7998

Please sign in to comment.