DField commited on
Commit
9451751
ยท
verified ยท
1 Parent(s): 2ca8f99

Update app.py

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