Spaces:
Sleeping
Sleeping
Update article_generator.py
Browse files- article_generator.py +2 -2
article_generator.py
CHANGED
|
@@ -203,7 +203,7 @@ def setup_plan_and_execute_agent():
|
|
| 203 |
# GPT-4を使用してテキストを生成するヘルパー関数
|
| 204 |
def generate_text_with_gpt4(prompt):
|
| 205 |
response = openai.ChatCompletion.create(
|
| 206 |
-
model="gpt-
|
| 207 |
messages=[{"role": "system", "content": "以下についての詳細な情報をまとめ、適宜箇所書き、表もしくはグラフを使って、直接的なコピーまたは近いフレーズを避けてオリジナルの内容にしてください。"},
|
| 208 |
{"role": "user", "content": prompt}],
|
| 209 |
temperature=0.7,
|
|
@@ -347,7 +347,7 @@ def generate_article(editable_output2):
|
|
| 347 |
try:
|
| 348 |
print(f"Sending instruction chunk {i+1} of {len(split_instructions)} to GPT-4...")
|
| 349 |
response = openai.ChatCompletion.create(
|
| 350 |
-
model="gpt-
|
| 351 |
messages=[system_message, user_message],
|
| 352 |
temperature=0.7,
|
| 353 |
)
|
|
|
|
| 203 |
# GPT-4を使用してテキストを生成するヘルパー関数
|
| 204 |
def generate_text_with_gpt4(prompt):
|
| 205 |
response = openai.ChatCompletion.create(
|
| 206 |
+
model="gpt-3.5-turbo-0125",
|
| 207 |
messages=[{"role": "system", "content": "以下についての詳細な情報をまとめ、適宜箇所書き、表もしくはグラフを使って、直接的なコピーまたは近いフレーズを避けてオリジナルの内容にしてください。"},
|
| 208 |
{"role": "user", "content": prompt}],
|
| 209 |
temperature=0.7,
|
|
|
|
| 347 |
try:
|
| 348 |
print(f"Sending instruction chunk {i+1} of {len(split_instructions)} to GPT-4...")
|
| 349 |
response = openai.ChatCompletion.create(
|
| 350 |
+
model="gpt-3.5-turbo-0125",
|
| 351 |
messages=[system_message, user_message],
|
| 352 |
temperature=0.7,
|
| 353 |
)
|