smoothbrain-ai / smoothbrain-anki

SmoothBrain is an Anki plugin that fetches Readwise highlights and makes flashcards using OpenAI GPT.
39 stars 6 forks source link

__init__() got an unexpected keyword argument 'summary' #52

Open edujavrod opened 5 months ago

edujavrod commented 5 months ago

Getting the error in subject line when trying to sync. Let me know what you think is the issue. Thanks!

avf313 commented 4 months ago

I'm getting the same error

avf313 commented 4 months ago

@alexbowe

johnsidi commented 2 months ago

I'm getting the same error also!

alexbowe commented 2 months ago

Thanks for trying Smoothbrain out, and for reporting this issue.

At the time this was written, OpenAI had a different API, and didn't support "function calling", which might be the reason there is no "summary" keyword (either the api call is erroring, or the LLM is not behaving).

But that's a wild guess. Is there any other information that appears? I think (it's been a while, sorry) Smoothbrain creates a log file in the Anki directory... is anyone able to find and provide that?

Also, I am currently focusing on a job search, so there will be some delay in me getting to this. PRs are welcome!

johnsidi commented 2 months ago

I have just tried to install smoothbrain for the first time and I got this error after pressing "Sync to Readwise".

In my log file I have the following entries:

{"timestamp": 1719255301.235559, "level": "INFO", "logger": "smoothbrain", "message": "Logger ready!"} {"timestamp": 1719255326.391893, "level": "INFO", "logger": "smoothbrain.readwise", "message": "Exporting Readwise data"} {"timestamp": 1719255326.392652, "level": "DEBUG", "logger": "smoothbrain.readwise", "message": "Making Readwise export API request with params={}"}

Thanks in advance :-)

johnsidi commented 2 months ago

I would like also to report that nothing has been imported to Anki.