Update app.py
Browse files
app.py
CHANGED
@@ -1675,7 +1675,7 @@ def stitch_story(raw_story: List[dict], theme_id: str, level: str) -> Dict[str,
|
|
1675 |
|
1676 |
# Generate polished English version
|
1677 |
response = client.chat.completions.create(
|
1678 |
-
model="gpt-
|
1679 |
messages=[
|
1680 |
{
|
1681 |
"role": "system",
|
@@ -1705,7 +1705,7 @@ def stitch_story(raw_story: List[dict], theme_id: str, level: str) -> Dict[str,
|
|
1705 |
|
1706 |
# Generate Thai translation
|
1707 |
translation_response = client.chat.completions.create(
|
1708 |
-
model="gpt-
|
1709 |
messages=[
|
1710 |
{
|
1711 |
"role": "system",
|
@@ -3134,7 +3134,7 @@ def generate_stitched_story(story: List[dict], style: str, detail_level: str, th
|
|
3134 |
|
3135 |
# Generate polished version
|
3136 |
response = client.chat.completions.create(
|
3137 |
-
model="gpt-
|
3138 |
messages=[
|
3139 |
{
|
3140 |
"role": "system",
|
@@ -3170,7 +3170,7 @@ def generate_stitched_story(story: List[dict], style: str, detail_level: str, th
|
|
3170 |
|
3171 |
# Generate Thai translation with matching style
|
3172 |
translation_response = client.chat.completions.create(
|
3173 |
-
model="gpt-
|
3174 |
messages=[
|
3175 |
{
|
3176 |
"role": "system",
|
|
|
1675 |
|
1676 |
# Generate polished English version
|
1677 |
response = client.chat.completions.create(
|
1678 |
+
model="gpt-4o-mini",
|
1679 |
messages=[
|
1680 |
{
|
1681 |
"role": "system",
|
|
|
1705 |
|
1706 |
# Generate Thai translation
|
1707 |
translation_response = client.chat.completions.create(
|
1708 |
+
model="gpt-4o-mini",
|
1709 |
messages=[
|
1710 |
{
|
1711 |
"role": "system",
|
|
|
3134 |
|
3135 |
# Generate polished version
|
3136 |
response = client.chat.completions.create(
|
3137 |
+
model="gpt-4o-mini",
|
3138 |
messages=[
|
3139 |
{
|
3140 |
"role": "system",
|
|
|
3170 |
|
3171 |
# Generate Thai translation with matching style
|
3172 |
translation_response = client.chat.completions.create(
|
3173 |
+
model="gpt-4o-mini",
|
3174 |
messages=[
|
3175 |
{
|
3176 |
"role": "system",
|