alanchen1115 commited on
Commit
fa541eb
·
verified ·
1 Parent(s): ba00282

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -9,7 +9,7 @@ from linebot.models import MessageEvent, TextMessage, TextSendMessage, ImageSend
9
  # 設定 Google AI API 金鑰
10
  client = genai.Client(api_key=os.getenv("GOOGLE_API_KEY"))
11
 
12
- # 設定生成文字的參數
13
  generation_config = genai.types.GenerateContentConfig(max_output_tokens=512, temperature=0.5, top_p=0.5,
14
  system_instruction="你是一位熱情開朗的機器人,每次回答問題之餘,還會講一個100字以內的笑話!") #角色扮演
15
 
 
9
  # 設定 Google AI API 金鑰
10
  client = genai.Client(api_key=os.getenv("GOOGLE_API_KEY"))
11
 
12
+ # 設定生成文字的參數 + 角色扮演
13
  generation_config = genai.types.GenerateContentConfig(max_output_tokens=512, temperature=0.5, top_p=0.5,
14
  system_instruction="你是一位熱情開朗的機器人,每次回答問題之餘,還會講一個100字以內的笑話!") #角色扮演
15