From 7beb74ff747de5ea0ea50b28090f587b69943220 Mon Sep 17 00:00:00 2001 From: ilee2u Date: Mon, 23 Oct 2023 12:04:14 -0400 Subject: [PATCH] chore: pylint fixes --- flashcards/utils.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/flashcards/utils.py b/flashcards/utils.py index cb99b98..82e9c4a 100644 --- a/flashcards/utils.py +++ b/flashcards/utils.py @@ -1,5 +1,10 @@ +""" +Integration with openai to generate 'flashcards' in csv form +based on course content +""" + import openai -from flashcards.settings.private import OPENAI_API_KEY +from flashcards.settings.private import OPENAI_API_KEY # pylint: disable=import-error,no-name-in-module openai.api_key = OPENAI_API_KEY @@ -181,7 +186,7 @@ c3 = openai.ChatCompletion.create( - model="gpt-3.5-turbo", + model="gpt-3.5-turbo", messages=messages, temperature=1.0, ) @@ -189,7 +194,7 @@ print(c3['choices'][0]['message']['content']) # c4 = openai.ChatCompletion.create( -# model="gpt-4", +# model="gpt-4", # messages=messages, # temperature=1.0, # )