feat: linebot

change groq model
This commit is contained in:
2026-03-16 01:34:44 +08:00
parent 842a9e2237
commit f9aa2b7774
2 changed files with 2 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ def solve_captcha(img_b64: str) -> str:
# 改用groq # 改用groq
client = Groq(api_key=GROQ_API_KEY) client = Groq(api_key=GROQ_API_KEY)
msg = client.chat.completions.create( msg = client.chat.completions.create(
model="llama-3.2-11b-vision-preview", model="meta-llama/llama-4-scout-17b-16e-instruct",
max_tokens=10, max_tokens=10,
messages=[{ messages=[{
"role": "user", "role": "user",

View File

@@ -244,5 +244,4 @@ def query_month(user_id):
# db.close() # db.close()
except Exception as e: except Exception as e:
print("❌ 查詢失敗:", e) print("❌ 查詢失敗:", e)
return "查詢失敗,請稍後再試" return "查詢失敗,請稍後再試"
# test webhook