Spaces:
Runtime error
Runtime error
Update article_generator.py
Browse files- article_generator.py +2 -2
article_generator.py
CHANGED
|
@@ -220,7 +220,7 @@ def setup_plan_and_execute_agent():
|
|
| 220 |
# GPT-4を使用してテキストを生成するヘルパー関数
|
| 221 |
def generate_text_with_gpt4(prompt):
|
| 222 |
response = openai.ChatCompletion.create(
|
| 223 |
-
model="gpt-
|
| 224 |
messages=[{"role": "system", "content": "以下についての詳細な情報をまとめ、適宜箇所書き、表もしくはグラフを使って、直接的なコピーまたは近いフレーズを避けてオリジナルの内容にしてください。"},
|
| 225 |
{"role": "user", "content": prompt}],
|
| 226 |
temperature=0.7,
|
|
@@ -370,7 +370,7 @@ def generate_article(editable_output2):
|
|
| 370 |
try:
|
| 371 |
print(f"Sending instruction chunk {i+1} of {len(split_instructions)} to GPT-4...")
|
| 372 |
response = openai.ChatCompletion.create(
|
| 373 |
-
model="gpt-
|
| 374 |
messages=[system_message, user_message],
|
| 375 |
temperature=0.7,
|
| 376 |
)
|
|
|
|
| 220 |
# GPT-4を使用してテキストを生成するヘルパー関数
|
| 221 |
def generate_text_with_gpt4(prompt):
|
| 222 |
response = openai.ChatCompletion.create(
|
| 223 |
+
model="gpt-4o",
|
| 224 |
messages=[{"role": "system", "content": "以下についての詳細な情報をまとめ、適宜箇所書き、表もしくはグラフを使って、直接的なコピーまたは近いフレーズを避けてオリジナルの内容にしてください。"},
|
| 225 |
{"role": "user", "content": prompt}],
|
| 226 |
temperature=0.7,
|
|
|
|
| 370 |
try:
|
| 371 |
print(f"Sending instruction chunk {i+1} of {len(split_instructions)} to GPT-4...")
|
| 372 |
response = openai.ChatCompletion.create(
|
| 373 |
+
model="gpt-4-turbo",
|
| 374 |
messages=[system_message, user_message],
|
| 375 |
temperature=0.7,
|
| 376 |
)
|