-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in generate_report: 'content' #1052
Comments
@kga245 any chance you can help with this? |
I am trying already… hopefully will have found the problem in the next
couple of days
Horst
…On Mon, 30 Dec 2024 at 17:03, Assaf Elovic ***@***.***> wrote:
@kga245 <https://github.com/kga245> any chance you can help with this?
—
Reply to this email directly, view it on GitHub
<#1052 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADZYZTXIDY7ZDGDBQDFPXGD2IDV4XAVCNFSM6AAAAABULFJUZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRVGEYDANRYGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi, @hherb . @assafelovic brought me into the loop because logging is an area I have recently worked on improving. I have stabilized logging more recently, but I haven't experimented with custom logging. I'd love to know what you're trying to get. So let's start there if you you don't mind. Here's what I can tell from the code you supplied: The "Something went wrong!" error you are seeing is likely because:
Alternatively, if you package up a branch and I am happy to see if I can diagnose locally. |
Hi,
will try. I am a MD working in remote hospitals, and only have time for
coding when I get some time off - next 10 days I am working 12+ hours a
day + on call during the night, so I won't be able to squeeze any
debugging/coding in, but after that I will once I had some sleep.
I have attached a minimal example of runnable code that will reproduce the
error if you uncomment lines 30-35.
As long as those lines stay commented out, it runs without error. Don't
understand why.
Thanks,
Horst
…On Wed, Jan 8, 2025 at 3:14 PM Kelly Abbott ***@***.***> wrote:
Hi, @hherb <https://github.com/hherb> . @assafelovic
<https://github.com/assafelovic> brought me into the loop because logging
is an area I have recently worked on improving.
I have stabilized logging more recently, but I haven't experimented with
custom logging. I'd love to know what you're trying to get. So let's start
there if you you don't mind.
Here's what I can tell from the code you supplied:
The "Something went wrong!" error you are seeing is likely because:
- The custom handler isn't properly integrated with the frontend
websocket system
- The backend isn't receiving or processing the websocket messages
correctly
- There's a version mismatch between their frontend dependencies and
what's expected
Alternatively, if you package up a branch and I am happy to see if I can
diagnose locally.
—
Reply to this email directly, view it on GitHub
<#1052 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADZYZTWOJHFBFJHY3HGZOKT2JSUJNAVCNFSM6AAAAABULFJUZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZWG42DEMJUG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I'll have a go at this. You save lives. |
Describe the bug
Since updating to version 0.10.9 (same with 0.10.10) I get an error "Error in generate_report: 'content'" after successful web scraping. This only happens when I use a custom log handler - the moment I comment out the custom logs handler the report gets generated as usual
This happens irrespective of LLM used (OpenAI default, ollama various ...) and regardless of type of research.
How can the log handler afect report generation that way?
To Reproduce
this is the relevant part of my python app:
Log excerpt:
INFO: [07:42:51] ✍️ Writing report for 'aspartame consumption and diabetes risk'...
{'content': 'writing_report',
'metadata': None,
'output': "✍️ Writing report for 'aspartame consumption and diabetes risk'...",
'type': 'logs'}
{'output': '# Aspartame Consumption and Diabetes Risk: A Comprehensive '
'Analysis\n'
'\n',
'type': 'report'}
Error in generate_report: 'content'
INFO: [07:42:53] 📝 Report written for 'aspartame consumption and diabetes risk'
{'content': 'report_written',
'metadata': None,
'output': "📝 Report written for 'aspartame consumption and diabetes risk'",
'type': 'logs'}
Expected behavior
Previously, the report would be generated without problems
The text was updated successfully, but these errors were encountered: