alanchen1115 commited on
Commit
c5469a0
·
verified ·
1 Parent(s): d7b5fcf

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -22,7 +22,7 @@ for filename in files:
22
 
23
  # 設定生成文字的參數 + 角色扮演
24
  generation_config = genai.types.GenerateContentConfig(max_output_tokens=3000, temperature=0.1, top_p=0.2,
25
- system_instruction=pdf_content + "\n" +
26
  "您是一位問答助手。請僅限使用以上提供的內容來回答問題。如果您不知道答案,請說您不知道,不要捏造答案。")
27
 
28
  # 設定 Line Bot 的 API 金鑰和秘密金鑰
 
22
 
23
  # 設定生成文字的參數 + 角色扮演
24
  generation_config = genai.types.GenerateContentConfig(max_output_tokens=3000, temperature=0.1, top_p=0.2,
25
+ system_instruction=pdf_content+"\n"+
26
  "您是一位問答助手。請僅限使用以上提供的內容來回答問題。如果您不知道答案,請說您不知道,不要捏造答案。")
27
 
28
  # 設定 Line Bot 的 API 金鑰和秘密金鑰