Skip to content

Conversation

@alexbowe
Copy link
Collaborator

@alexbowe alexbowe commented Mar 29, 2023

  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.

@alexbowe alexbowe changed the base branch from master to develop March 29, 2023 05:29
@alexbowe alexbowe requested a review from abdnh March 29, 2023 05:37
@alexbowe alexbowe added the enhancement New feature or request label Mar 29, 2023
f"Failed to parse completion as JSON. Completion: {completion}"
)
raise e
except ValueError as e:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be KeyError?

@abdnh
Copy link
Collaborator

abdnh commented Mar 30, 2023

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

@alexbowe
Copy link
Collaborator Author

alexbowe commented Apr 2, 2023

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
Copy link
Collaborator

abdnh commented Apr 2, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants