You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use the Python openai package coupled with a user passed API key, to generate plain language reports from our data using the OpenAI api. We should be able to generate reports for both VOSS instances and Comparison instances.
This is probably best implemented through another ABC called Reportable. The Reportable class will require sub-classes to implement __str__ and __repr__. We will use the result of __str__ and __repr__ to format our classes into JSON documents. In addition to implementing these special functions, the class will also be required to implement a "report" method. For convenience, the Report class will implement a generate@classmethod for performing the OpenAI API call functionality.
The text was updated successfully, but these errors were encountered:
I want to use the Python
openai
package coupled with a user passed API key, to generate plain language reports from our data using the OpenAI api. We should be able to generate reports for both VOSS instances and Comparison instances.This is probably best implemented through another ABC called
Reportable
. The Reportable class will require sub-classes to implement__str__
and__repr__
. We will use the result of__str__
and__repr__
to format our classes into JSON documents. In addition to implementing these special functions, the class will also be required to implement a "report" method. For convenience, the Report class will implement agenerate
@classmethod
for performing the OpenAI API call functionality.The text was updated successfully, but these errors were encountered: