mirror of
https://github.com/henry4682/linebot_finance.git
synced 2026-05-16 04:41:52 +00:00
feat: linebot
change groq model
This commit is contained in:
@@ -58,7 +58,7 @@ def solve_captcha(img_b64: str) -> str:
|
||||
# 改用groq
|
||||
client = Groq(api_key=GROQ_API_KEY)
|
||||
msg = client.chat.completions.create(
|
||||
model="llama-3.2-11b-vision-preview",
|
||||
model="meta-llama/llama-4-scout-17b-16e-instruct",
|
||||
max_tokens=10,
|
||||
messages=[{
|
||||
"role": "user",
|
||||
|
||||
@@ -244,5 +244,4 @@ def query_month(user_id):
|
||||
# db.close()
|
||||
except Exception as e:
|
||||
print("❌ 查詢失敗:", e)
|
||||
return "查詢失敗,請稍後再試"
|
||||
# test webhook
|
||||
return "查詢失敗,請稍後再試"
|
||||
Reference in New Issue
Block a user