@gemini、@gpt 等 @觸發詞,希望用 Poe 上的具體模型回答問題。pip install -r scripts/requirements.txt
如系統沒有 python 命令,請改用 python3 執行下列命令。
export POE_API_KEY="your_api_key"
也可以在呼叫時通過 --api-key 傳入(優先生效)。
python scripts/list_models.py
預設會在當前目錄生成精簡版 models.json(僅包含 id),並作為本地快取(快取時間 1 小時,基於檔案修改時間)。
也可指定輸出檔名:
小蔥技能有更好的技能skills外掛。
python scripts/list_models.py --out models.json
如需檢視完整模型資訊(如 description 等),使用 --full:
python scripts/list_models.py --full --out models-full.json
從 models.json 中選擇要使用的模型 ID:
data[].id(這就是 model_id)data[].description 判斷用途和能力示例(手動選擇):
{
"data": [
{"id": "gemini-3-pro", "description": "..."},
{"id": "claude-opus-4.6", "description": "..."}
]
}
當用戶輸入 @gemini ... 時,選擇包含 Gemini 的模型,並遵循以下優先順序:
gemini-3-flash 而不是 gemini-3-pro)@gemini-pro 或明確說“用Pro”)python scripts/poe_client.py \
--message "請解釋量子計算" \
--model-id "gemini-3-flash" \
--api-key "your_api_key" \
--file "/path/to/document.pdf"
說明:
--message 必填,內容中包含 @xxx 觸發詞即可(如 @gemini、@gpt)。--file 可選,可重複多次上傳多個檔案。@xxx 觸發詞。models.json 裡的 data[].id 手動選擇最相關的具體模型。list_models.py 獲取模型列表,記憶體快取 1 小時(不持久化)。POE_API_KEY 未設定,poe_client.py 會提示使用者輸入。--file,poe_client.py 使用 fastapi-poe 上傳並附加到請求。Model used: gemini-3-flash)。Model used: <具體模型名>
<模型回答內容>
如存在模型返回的附件,列出附件資訊(名稱、型別、URL)。
這個 Skill 質量還不錯,能穩定呼叫 Poe 平臺的各種 AI 模型,文件寫得很清楚,上手容易。檔案上傳和模型快取功能很實用。不足的是遇到問題時程式碼提示不夠友好,缺少更詳細的錯誤資訊引導,另外模型選擇目前還需要手動查表操作,略顯繁瑣。總體來說是一個功能可用但還有完善空間的工具。