According to WP, there are four factors to consider:
1. Purpose, including whether it's commercial.
2. Nature of the work (e.g. fiction/non-fiction, published/unpublished)
3. How much was used
4. Whether the use impairs the author's ability to exploit his work
====
1. The use is definitely commercial.
2. This use consumes anything and everything.
3. This use consumes entire libraries.
4. It can diminish the market for the author's own work (observe authors complaining that GPT simulacra of their work are competing with their own publications on Amazon).
Each of these factors is to be weighed by the court; no one factor is decisive. But, for example, if you use the entire work, factor #2 weighs against you. It looks to me that the four factors all weigh against OpenAI.