Guiyom commited on
Commit
80c53e2
·
verified ·
1 Parent(s): b18eb92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1374,6 +1374,7 @@ Full Report HTML:
1374
  - Your suggestions should not conflict with the content already present in other sections of the report
1375
  - This an "expansion", not an "addition", which means you should not ask to add a new section or sub-section but just add a paragraph or two at most
1376
  - You're not supposed to add any new title or brand new section
 
1377
 
1378
  Your suggestions will help to make the report more comprehensive and ensure all the relevant knowledge available is used.
1379
  Now provide your suggestions to expand the report."""
@@ -2368,7 +2369,7 @@ def llm_call(prompt: str, messages: list = None, model: str = "o3-mini", tempera
2368
  logging.error("Empty response from LLM for prompt: " + prompt)
2369
  return "Error: empty response"
2370
 
2371
- logging.info(f"llm_call completed with model {model}. Response preview: {result}")
2372
  return result
2373
  except Exception as e:
2374
  err_msg = f"Error calling OpenAI API: {e}"
 
1374
  - Your suggestions should not conflict with the content already present in other sections of the report
1375
  - This an "expansion", not an "addition", which means you should not ask to add a new section or sub-section but just add a paragraph or two at most
1376
  - You're not supposed to add any new title or brand new section
1377
+ - Focus on the paragraph (within p tag) or sections (between 2 h1 titles - excluding visuals) that are not of the proper dimension for the topic addressed.
1378
 
1379
  Your suggestions will help to make the report more comprehensive and ensure all the relevant knowledge available is used.
1380
  Now provide your suggestions to expand the report."""
 
2369
  logging.error("Empty response from LLM for prompt: " + prompt)
2370
  return "Error: empty response"
2371
 
2372
+ logging.info(f"llm_call completed with model {model}. Response preview: {result}\n\n\nThe original prompt sent was:\n{prompt[:5000]}")
2373
  return result
2374
  except Exception as e:
2375
  err_msg = f"Error calling OpenAI API: {e}"