Support GitHub Models inference provider
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- github-actions, javascript
调研方向
首先追踪 GitHub Actions 版本现有的 OpenAI 配置,以及它如何构建推理请求;issue 中没有指定源文件或测试。使用提供的 workflow 示例作为验收用例,包括使用 GITHUB_TOKEN 进行身份验证、GitHub Models 端点、模型选择和调优选项。用户能够在没有 OpenAI 密钥的情况下配置 GitHub Models,即表示完成。
由索引模型根据 Issue 内容生成。
描述
GitHub Models provides free AI inference in GitHub Models (supports all OpenAI models, DeepSeek, plus others). It would be nice to support that in the GitHub Actions version of this project, so users don't need to generate an OpenAI key.
Here's an example (uses built-in GITHUB_TOKEN):
name: Code Review
permissions:
contents: read
pull-requests: write
models: read # Required to call GitHub Models
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: anc95/ChatGPT-CodeReview@main
env:
# Required for the action itself to access the PR
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Use GitHub Models for inference
OPENAI_API_KEY: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_ENDPOINT: https://models.github.ai/inference
MODEL: gpt-4o-mini
# Optional tuning
LANGUAGE: English
PROMPT: # example: Please check if there are any confusions or irregularities in the following code diff:
top_p: 1
temperature: 1
max_tokens: 10000
MAX_PATCH_LENGTH: 10000
IGNORE_PATTERNS: /node_modules/**/*,*.md
INCLUDE_PATTERNS: *.js,*.ts
- 主要语言
- JavaScript
- 星标
- 4.5k
- 派生
- 465
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
anc95/ChatGPT-CodeReview 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
anc95/ChatGPT-CodeReview#76 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 45/100
anc95/ChatGPT-CodeReview#208 ·
-
难度 3/5 1-2 天 新手友好度 35/100
anc95/ChatGPT-CodeReview#203 · 2 条评论 · 1 个 reaction ·
-
Rate limit可能已有人在做 @Br1an67 于 234 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 35/100
anc95/ChatGPT-CodeReview#201 · 4 条评论 ·
-
Issue未关闭
难度 4/5 3-5 天 新手友好度 25/100
anc95/ChatGPT-CodeReview#200 ·
查看 anc95/ChatGPT-CodeReview 的全部 Issue
相似的 Issue
-
documentation
难度 2/5 1-3 小时 新手友好度 78/100
PhyberApex/slds-json-schema-renderer#372 ·
维护者通常 1 天内回复
-
usage: a custom provider's balance meters ("…%" in the balance path) ignore the Left/Used switch未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
[BUG] rag: sentence content can cross the reported sentence boundaries可能已有人在做 @LJK-ikun 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
ericcornelissen/depreman#591 ·
维护者通常 1 天内回复
-
bug/1-unconfirmed kind/bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复