Nai-Yun commited on
Commit
adc8b0d
·
verified ·
1 Parent(s): ff9f604

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ app = Flask(__name__)
11
  line_bot_api = LineBotApi(os.environ.get('LINE_CHANNEL_ACCESS_TOKEN'))
12
  handler = WebhookHandler(os.environ.get('LINE_CHANNEL_SECRET'))
13
  genai.configure(api_key=os.environ.get('GEMINI_API_KEY'))
14
- model = genai.GenerativeModel('gemini-1.5-flash-latest')
15
 
16
  # ================= 2. 建立狀態儲存區(暫存每個用戶的進度) =================
17
  user_states = {}
 
11
  line_bot_api = LineBotApi(os.environ.get('LINE_CHANNEL_ACCESS_TOKEN'))
12
  handler = WebhookHandler(os.environ.get('LINE_CHANNEL_SECRET'))
13
  genai.configure(api_key=os.environ.get('GEMINI_API_KEY'))
14
+ model = genai.GenerativeModel('gemini-2.5-flash')
15
 
16
  # ================= 2. 建立狀態儲存區(暫存每個用戶的進度) =================
17
  user_states = {}