actions/ai-inference
An action for calling AI models with GitHub Models
解決的問題
本專案提供一個 GitHub Action,讓開發者能將 AI 驅動的推論直接整合至其 CI/CD 工作流程中。無需撰寫自訂腳本來呼叫 AI 模型,提供一種標準化的方式,透過 GitHub Copilot CLI 執行提示詞。
運作方式
此動作作為 GitHub Copilot CLI 的封裝器。它接收提示(以內嵌方式或透過檔案提供)與系統提示,將其傳送至 Copilot CLI,並以工作流程輸出或暫存檔案的形式回傳模型的回應。
適用對象
使用 GitHub Copilot 並希望在 GitHub Actions 工作流程中自動化 AI 任務(例如總結倉儲變更或分析程式碼)的開發者與 DevOps 工程師。
主要特色
- 彈性提示輸入:支援內嵌提示、純文字檔案與包含範本變數的結構化
.prompt.yml 檔案。
- 變數注入:可透過
file_input 參數,將其他檔案內容注入提示中。
- 模型選擇:可指定要使用的模型(例如
gpt-4.1、claude-sonnet-4.5)。
- 模型回應處理:將回應同時輸出為字串與暫存檔案路徑,方便在後續工作流程步驟中處理。
相關
- 專案
github/appGitHub Copilot 應用是一款桌面客戶端,可讓你在隔離的本地或雲端工作區中執行由 Copilot 驅動的 AI 代理,管理多個並行會話,並透過視覺化畫布與自動化工具,從選擇任務到合併 PR 的整個編碼工作流程。
- 專案
- 專案
github/gh-awGitHub Agentic Workflows (`gh-aw`) is a GitHub CLI extension that lets you write AI‑powered automation as Markdown files with YAML front‑matter. The tool compiles these *agentic* workflows into standard GitHub Actions workflows, running LLMs (Copilot, Claude, OpenAI, Gemini, Pi) in a sandboxed, read‑only mode. Writes are gated through a separate safe‑outputs job with scoped permissions. It’s designed for tasks like issue triage, PR review, CI failure analysis, docs updates, and repo reporting, integrating securely with existing CI/CD pipelines.
- 專案
- 專案