DField commited on
Commit
65243a8
ยท
verified ยท
1 Parent(s): 7cf72d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def summarize_text_with_chat(text, max_length=10000):
52
  trimmed_text = text[:max_length]
53
 
54
  response = openai.chat.completions.create(
55
- model="gpt-3.5-turbo",
56
  messages=[
57
  {"role": "system", "content": "ๆฌกใฎๆ–‡ๆ›ธใ‚’่ฆ็ด„ใ—ใฆใใ ใ•ใ„ใ€‚ๅฟ…ใš'## ใ‚ฟใ‚คใƒˆใƒซ', '## ่ฆ็ด„', '## ๅฐ‚้–€็”จ่ชž่งฃ่ชฌ'ใ‚’่จ˜่ผ‰ใ—ใฆใใ ใ•ใ„ใ€‚"},
58
  {"role": "user", "content": trimmed_text}
 
52
  trimmed_text = text[:max_length]
53
 
54
  response = openai.chat.completions.create(
55
+ model="gpt-4-0125-preview",
56
  messages=[
57
  {"role": "system", "content": "ๆฌกใฎๆ–‡ๆ›ธใ‚’่ฆ็ด„ใ—ใฆใใ ใ•ใ„ใ€‚ๅฟ…ใš'## ใ‚ฟใ‚คใƒˆใƒซ', '## ่ฆ็ด„', '## ๅฐ‚้–€็”จ่ชž่งฃ่ชฌ'ใ‚’่จ˜่ผ‰ใ—ใฆใใ ใ•ใ„ใ€‚"},
58
  {"role": "user", "content": trimmed_text}