Currently, the Subject class from rxjs is being imported and extended inside the RaggedSubject class. It's being used in a few different places to handle streaming event subscriptions.
We need to remove the rxjs dependency without breaking the current interface. This will eliminate rxjs as a dependency. rxjs currently adds about 10kb to the build.
openai also needs to be removed, and we can just do straight API calls... although this is admittedly a bit trickier. openai adds about 40-50kb to the build.
Doing this will make Ragged a 0-dependency library, which is very good for many reasons.
Currently, the
Subject
class fromrxjs
is being imported and extended inside theRaggedSubject
class. It's being used in a few different places to handle streaming event subscriptions.We need to remove the
rxjs
dependency without breaking the current interface. This will eliminaterxjs
as a dependency.rxjs
currently adds about 10kb to the build.openai
also needs to be removed, and we can just do straight API calls... although this is admittedly a bit trickier.openai
adds about 40-50kb to the build.Doing this will make Ragged a 0-dependency library, which is very good for many reasons.