alanchen1115 commited on
Commit
8e2f85f
·
verified ·
1 Parent(s): 44e4b4e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -93,7 +93,7 @@ def handle_message(event):
93
  # Convert the prompt to a Text Part
94
  prompt_part = genai.types.Part.from_text(text=prompt)
95
  # Combine the PDF contents and the new prompt into a single list for the 'contents' argument
96
- combined_contents = files_content + [prompt_part]
97
  # 使用 client.models.generate_content
98
  completion = client.models.generate_content(
99
  model="gemini-2.5-flash",
 
93
  # Convert the prompt to a Text Part
94
  prompt_part = genai.types.Part.from_text(text=prompt)
95
  # Combine the PDF contents and the new prompt into a single list for the 'contents' argument
96
+ combined_contents = prompt_part + files_content
97
  # 使用 client.models.generate_content
98
  completion = client.models.generate_content(
99
  model="gemini-2.5-flash",