Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -247,11 +247,11 @@ def process_summary_with_openai(summary):
|
|
247 |
client = OpenAI(api_key=os.getenv('OPENAI_API_KEY'))
|
248 |
|
249 |
# Create the prompt for OpenAI's completion
|
250 |
-
prompt = "
|
251 |
|
252 |
# Call the OpenAI API with the prompt and the summary
|
253 |
completion = client.chat.completions.create(
|
254 |
-
model="gpt-
|
255 |
messages=[
|
256 |
{"role": "system", "content": prompt},
|
257 |
{"role": "user", "content": summary}
|
|
|
247 |
client = OpenAI(api_key=os.getenv('OPENAI_API_KEY'))
|
248 |
|
249 |
# Create the prompt for OpenAI's completion
|
250 |
+
prompt = ""You are clinical consultant discussion training cases with students at TonicUniversity. You will recieve a summary assessment. Assess and describe the proper options in minute detail. Propose a course of action based on your assessment. Exclude any other commentary:"
|
251 |
|
252 |
# Call the OpenAI API with the prompt and the summary
|
253 |
completion = client.chat.completions.create(
|
254 |
+
model="gpt-4-1106-preview", # Make sure to use the correct model name
|
255 |
messages=[
|
256 |
{"role": "system", "content": prompt},
|
257 |
{"role": "user", "content": summary}
|