File size: 469 Bytes
e829c12
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
license: mit
---
import openai

def biblical_chatbot(prompt):
    response = openai.ChatCompletion.create(
        model="gpt-4-turbo",
        messages=[{"role": "system", "content": "You are a Biblical AI assistant. Base all responses on the Bible and sound Christian teachings."},
                  {"role": "user", "content": prompt}]
    )
    return response["choices"][0]["message"]["content"]

print(biblical_chatbot("What does the Bible say about faith?"))