Update main.py
Browse files
main.py
CHANGED
|
@@ -5,7 +5,8 @@ from google import genai
|
|
| 5 |
from linebot import LineBotApi, WebhookHandler
|
| 6 |
from linebot.exceptions import InvalidSignatureError
|
| 7 |
from linebot.models import MessageEvent, TextMessage, TextSendMessage, ImageSendMessage, AudioMessage
|
| 8 |
-
import
|
|
|
|
| 9 |
|
| 10 |
# 設定 Google AI API 金鑰
|
| 11 |
client = genai.Client(api_key=os.getenv("GOOGLE_API_KEY"))
|
|
|
|
| 5 |
from linebot import LineBotApi, WebhookHandler
|
| 6 |
from linebot.exceptions import InvalidSignatureError
|
| 7 |
from linebot.models import MessageEvent, TextMessage, TextSendMessage, ImageSendMessage, AudioMessage
|
| 8 |
+
import httpx
|
| 9 |
+
import tempfile
|
| 10 |
|
| 11 |
# 設定 Google AI API 金鑰
|
| 12 |
client = genai.Client(api_key=os.getenv("GOOGLE_API_KEY"))
|