Spaces:
Sleeping
Sleeping
Masa-digital-art
commited on
Commit
·
bf312e6
1
Parent(s):
9d7a649
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ article = """
|
|
33 |
|
34 |
load_dotenv()
|
35 |
openai.api_key = os.getenv('OPENAI_API_KEY')
|
36 |
-
MODEL = "gpt-3.5-turbo-
|
37 |
|
38 |
def get_filetext(filename, cache={}):
|
39 |
if filename in cache:
|
@@ -57,7 +57,7 @@ class OpenAI:
|
|
57 |
|
58 |
# ChatCompletion APIに渡すデータを定義する
|
59 |
data = {
|
60 |
-
"model": "gpt-3.5-turbo-
|
61 |
"messages": [
|
62 |
{"role": "system", "content": constraints}
|
63 |
,{"role": "system", "content": template}
|
|
|
33 |
|
34 |
load_dotenv()
|
35 |
openai.api_key = os.getenv('OPENAI_API_KEY')
|
36 |
+
MODEL = "gpt-3.5-turbo-1106"
|
37 |
|
38 |
def get_filetext(filename, cache={}):
|
39 |
if filename in cache:
|
|
|
57 |
|
58 |
# ChatCompletion APIに渡すデータを定義する
|
59 |
data = {
|
60 |
+
"model": "gpt-3.5-turbo-1106",
|
61 |
"messages": [
|
62 |
{"role": "system", "content": constraints}
|
63 |
,{"role": "system", "content": template}
|