alanchen1115 commited on
Commit
d8979a6
ยท
verified ยท
1 Parent(s): ad850ef

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -10,7 +10,7 @@ from linebot.models import MessageEvent, TextMessage, TextSendMessage, ImageSend
10
  client = genai.Client(api_key=os.getenv("GOOGLE_API_KEY"))
11
 
12
  # ่จญๅฎš็”Ÿๆˆๆ–‡ๅญ—็š„ๅƒๆ•ธ
13
- generation_config = genai.types.GenerateContentConfig(max_output_tokens=2048, temperature=0.2, top_p=0.5, top_k=16)
14
 
15
  # ่จญๅฎš Line Bot ็š„ API ้‡‘้‘ฐๅ’Œ็ง˜ๅฏ†้‡‘้‘ฐ
16
  line_bot_api = LineBotApi(os.environ["CHANNEL_ACCESS_TOKEN"])
 
10
  client = genai.Client(api_key=os.getenv("GOOGLE_API_KEY"))
11
 
12
  # ่จญๅฎš็”Ÿๆˆๆ–‡ๅญ—็š„ๅƒๆ•ธ
13
+ generation_config = genai.types.GenerateContentConfig(max_output_tokens=256, temperature=0.5, top_p=0.5, top_k=16)
14
 
15
  # ่จญๅฎš Line Bot ็š„ API ้‡‘้‘ฐๅ’Œ็ง˜ๅฏ†้‡‘้‘ฐ
16
  line_bot_api = LineBotApi(os.environ["CHANNEL_ACCESS_TOKEN"])