Gustav2811 commited on
Commit
b7bd1df
·
1 Parent(s): 4bdfa71
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -450,7 +450,12 @@ async def main(message: cl.Message):
450
  # Now let the AI provide a final response with the tool results
451
  try:
452
  async with cl.Step(name="Responding", type="llm") as response_step:
453
- response_step.input = "Generating response based on tool results"
 
 
 
 
 
454
 
455
  final_response = await openai_client.chat.completions.create(
456
  model="gpt-4o",
 
450
  # Now let the AI provide a final response with the tool results
451
  try:
452
  async with cl.Step(name="Responding", type="llm") as response_step:
453
+ response_step.input = """
454
+ The tool results were summarised in a custom UI component above.
455
+ Create a summary of the results, based on the values returned by the tool, the original user query.
456
+ Don't just repeat the cars that are available. Your goal is to provide commentary, maybe giving some advice.
457
+
458
+ """
459
 
460
  final_response = await openai_client.chat.completions.create(
461
  model="gpt-4o",