ai-inference  by actions

AI inference for GitHub Actions

Created 5 months ago
347 stars

Top 80.0% on SourcePulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This action enables the use of AI models within GitHub Actions workflows, allowing developers to integrate AI-powered tasks directly into their CI/CD pipelines. It targets developers and teams looking to automate tasks like code summarization, text generation, or data analysis using AI models hosted on GitHub Models.

How It Works

The action leverages a YAML-based configuration for prompts, supporting both simple text and structured .prompt.yml files. These structured files allow for templating, custom model selection, and JSON schema-based response formatting. It integrates with GitHub's Model Context Protocol (MCP) to grant AI models access to GitHub tools for repository management and issue tracking.

Quick Start & Requirements

  • Primary install/run command: uses: actions/ai-inference@v1
  • Prerequisites: permissions: models: read
  • For MCP integration: enable-github-mcp: true and potentially token and github-mcp-token (e.g., secrets.USER_PAT).
  • Documentation: GitHub Models

Highlighted Details

  • Supports templating and JSON schema responses via .prompt.yml files.
  • Integrates with GitHub's Model Context Protocol (MCP) for tool access.
  • Can read responses from files for outputs exceeding action limits.
  • Includes a script/release helper for managing GitHub Actions releases.

Maintenance & Community

  • Contributions are welcome via the Contributor's Guide.
  • Versioning follows GitHub Actions best practices.

Licensing & Compatibility

  • License: MIT
  • Compatible with commercial use and closed-source linking.

Limitations & Caveats

The action requires specific models: read permissions for GitHub Models. While it supports large responses via response-file, the default max-tokens is 200, which may require explicit configuration for more extensive outputs.

Health Check
Last Commit

3 days ago

Responsiveness

Inactive

Pull Requests (30d)
19
Issues (30d)
8
Star History
76 stars in the last 30 days

Explore Similar Projects

Starred by Matt Schrage Matt Schrage(Cofounder of Fig), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
2 more.

amazon-q-developer-cli by aws

2.4%
2k
CLI tool for agentic terminal interactions using natural language
Created 1 year ago
Updated 21 hours ago
Feedback? Help us improve.