fix indent
This commit is contained in:
parent
547d6545e1
commit
ac75cbaa7c
@ -7,7 +7,7 @@ import openai
|
|||||||
def answer_question(prompt, user):
|
def answer_question(prompt, user):
|
||||||
bots_context = "You are located in zipcode 94549. You are a chatbot written in python and you are answering questions for me"
|
bots_context = "You are located in zipcode 94549. You are a chatbot written in python and you are answering questions for me"
|
||||||
|
|
||||||
openai.api_key = os.getenv("OPENAI_API_KEY")
|
openai.api_key = os.getenv("OPENAI_API_KEY")
|
||||||
|
|
||||||
completion = openai.ChatCompletion.create(
|
completion = openai.ChatCompletion.create(
|
||||||
model="gpt-3.5-turbo", messages=[{"role": user, "content": prompt}]
|
model="gpt-3.5-turbo", messages=[{"role": user, "content": prompt}]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user