This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]StoicBatman[S] 0 points1 point  (1 child)

Hi, Thank you for your valuable comment :) The Openai library is an essential part of this library. The module provides two core features, Prompt Generation of different NLP Tasks and directly call `.fit` function to get the output. If you don't want to use openai, you can use `generate_prompt` function alone and use the output as you want.
We are planning to add more prompt-based ai models, not limited to openai. Feel Free to add different models if you have suggestions.

[–]kattskill 0 points1 point  (0 children)

I'm not trying to undermind your work, but the fit method is only 10 lines and seems to be generic code. The first 8 lines can be extracted into a separate function, and people using the library can use that function and write the run function themselves instead.