DField commited on
Commit
a5bac8f
ยท
verified ยท
1 Parent(s): f81a142

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ def summarize_text_with_chat(text, max_length=20000):
45
  openai.api_key = os.getenv('OPEN_AI_API_KEYS')
46
  trimmed_text = text[:max_length]
47
  response = openai.chat.completions.create(
48
- model="gpt-4-0125-preview",
49
  messages=[
50
  {"role": "system", "content": "ๆฌกใฎๆ–‡ๆ›ธใ‚’่ฆ็ด„ใ—ใฆใใ ใ•ใ„ใ€‚ๅฟ…ใš'## ใ‚ฟใ‚คใƒˆใƒซ', '## ่ฆ็ด„', '## ๅฐ‚้–€็”จ่ชž่งฃ่ชฌ'ใ‚’่จ˜่ผ‰ใ—ใฆใใ ใ•ใ„ใ€‚"},
51
  {"role": "user", "content": trimmed_text}
 
45
  openai.api_key = os.getenv('OPEN_AI_API_KEYS')
46
  trimmed_text = text[:max_length]
47
  response = openai.chat.completions.create(
48
+ model="gpt-4o",
49
  messages=[
50
  {"role": "system", "content": "ๆฌกใฎๆ–‡ๆ›ธใ‚’่ฆ็ด„ใ—ใฆใใ ใ•ใ„ใ€‚ๅฟ…ใš'## ใ‚ฟใ‚คใƒˆใƒซ', '## ่ฆ็ด„', '## ๅฐ‚้–€็”จ่ชž่งฃ่ชฌ'ใ‚’่จ˜่ผ‰ใ—ใฆใใ ใ•ใ„ใ€‚"},
51
  {"role": "user", "content": trimmed_text}