Update app.py
Browse files
app.py
CHANGED
@@ -168,7 +168,7 @@ def openai_chat_avatar(text_prompt):
|
|
168 |
model="gpt-4o-mini",
|
169 |
messages=[
|
170 |
{"role": "system", "content": "Summarize the following paragraph into a complete and accurate single sentence with no more than 15 words. The summary should capture the gist of the paragraph and make sense and remove the citation and document name from the end."},
|
171 |
-
{"role": "user", "content": f"Please summarize the following paragraph
|
172 |
],
|
173 |
max_tokens = len(text_prompt), # Limit the response to a reasonable length for a summary
|
174 |
)
|
|
|
168 |
model="gpt-4o-mini",
|
169 |
messages=[
|
170 |
{"role": "system", "content": "Summarize the following paragraph into a complete and accurate single sentence with no more than 15 words. The summary should capture the gist of the paragraph and make sense and remove the citation and document name from the end."},
|
171 |
+
{"role": "user", "content": f"Please summarize the following paragraph with 30 words or fewer, ensuring it makes sense and captures the gist make sure to include the order_ids : {text_prompt}"},
|
172 |
],
|
173 |
max_tokens = len(text_prompt), # Limit the response to a reasonable length for a summary
|
174 |
)
|