smoothbrain-ai / smoothbrain-anki

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

Add GPT-4 support and improve card generation #38

Open alexbowe opened 1 year ago

alexbowe commented 1 year ago
  1. Updates vendored openai lib (if reviewing, ignore the vendored folder changes)
  2. Uses "system" role to improve the quality and output format of cards from OpenAI API.
  3. Suspends notes that don't have flash cards returned.
  4. Adds max_num_docs_to_fetch_from_readwise config option for reducing query size while debugging.
  5. Adds lazy evaluation of config options (so they can be updated by the user without restarting Anki).
  6. Adds log_exceptions decorator to help with logging.
  7. Format code using black.
abdnh commented 1 year ago

Looks like ChatGPT is insisting on starting its answers with "output:" sometimes. image

alexbowe commented 1 year ago

Looks like ChatGPT is insisting on starting its answers with "output:" sometimes. image

Huh interesting. Was that GPT 3 or 4? It seems fairly consistent with GPT 4, but maybe I didn't test enough.

abdnh commented 1 year ago

It's GPT 3. (I don't have access to GPT 4)