SANDY0721 commited on
Commit
59bc3ce
·
verified ·
1 Parent(s): 04631be

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -12,7 +12,7 @@ client = genai.Client(api_key=os.getenv("GOOGLE_API_KEY"))
12
  # 設定生成文字的參數 + 角色扮演
13
  system_instruction = "你是一位姓名學算命師,每次回答問題之餘,還會幫我分析星座運勢!"
14
  thinking_config = genai.types.ThinkingConfig(thinking_budget=0) # thinking_budget = 0, turn off thinking mode
15
- generation_config = genai.types.GenerateContentConfig(max_output_tokens=512, temperature=0.2, top_p=0.5,
16
  thinking_config=thinking_config,
17
  system_instruction=system_instruction)
18
 
 
12
  # 設定生成文字的參數 + 角色扮演
13
  system_instruction = "你是一位姓名學算命師,每次回答問題之餘,還會幫我分析星座運勢!"
14
  thinking_config = genai.types.ThinkingConfig(thinking_budget=0) # thinking_budget = 0, turn off thinking mode
15
+ generation_config = genai.types.GenerateContentConfig(max_output_tokens=5120, temperature=0.2, top_p=0.5,
16
  thinking_config=thinking_config,
17
  system_instruction=system_instruction)
18