Closed KennethEnevoldsen closed 1 year ago
Added functionality for creating overwriting the existing prompt with a custom prompt.
(wanted to test this using the pytests, but it seems like they are broken due to a missing function) I fixed the tests as well
intended use-case:
my_template = """ List of categories: {labels} Text sample: ```{x}``` Your JSON response: """ # create clf clf = ZeroShotGPTClassifier(openai_key = "<key>", openai_org="<ORG>" openai_model = "gpt-3.5-turbo", default_label = "Random", prompt_template= my_template)
Added functionality for creating overwriting the existing prompt with a custom prompt.
(wanted to test this using the pytests, but it seems like they are broken due to a missing function)I fixed the tests as wellintended use-case: