GIM新版本发布,如何制作Rust CLI的brew bottle流程?

摘要:GIM 发布新版本了!现在1.3.0版本可用了 https:github.comdaveletgit-intelligence-messagereleasestagv1.3.0 。可以通过brew upgrade git-in
GIM 发布新版本了!现在1.3.0版本可用了 https://github.com/davelet/git-intelligence-message/releases/tag/v1.3.0 。可以通过brew upgrade git-intelligence-message升级。 初次安装需要先执行 brew tap davelet/gim GIM 是一个根据git仓库内文件变更自动生成git提交消息的命令行工具,参考前文《GIM: 根据代码变更自动生成git提交消息的工具》。 在最近的版本中主要三个新能力: 不再依赖rust而是安装二进制包 自动探测新版本并提示更新 用户可自主调整生成提示(AI prompt) 此外还内置了更多大模型的 API 调用地址。 因为我电脑是Mac所以只做了Mac版本。如果有哪位同僚能帮我做成windows版本的,不胜感激🙏 二进制安装 GIM 现在不依赖 rust 环境了,改为通过brew bottle安装了。即下即用,不用编译安装,立刻节省5G磁盘。 为了保证效果,推荐重装: brew uninstall git-intelligence-message brew cleanup brew update brew install git-intelligence-message 升级 GIM 版本 软件执行时会主动探测是否有新版本。发现后(会有提示)可以执行 gim update 来升级。如果提示了5次依然没升级则一个月内不会再提示。 调整AI提示词 可以自主设置提示词了。通过命令 gim prompt查看默认提示词,通过gim prompt -e可进行提示词更新。 完整命令可参考项目文档 https://github.com/davelet/git-intelligence-message/blob/main/README.md 或者帮助文档: gim prompt -h Manage ai model prompt files. Show content when no options specified Usage: gim prompt [OPTIONS] Options: -e, --edit Optional: Edit the prompt files -t, --prompt <PROMPT> Optional: Specify which prompt to edit (d or diff or diff_prompt or subject_prompt) -o, --editor <EDITOR> Optional: Specify the editor to use (e.g., vim, code, nano) -h, --help Print help 内置大模型地址清单 现在内置了一下8中大模型的API地址: Model Prefix Service Provider Default Endpoint gpt-* OpenAI https://api.openai.com/v1/chat/completions moonshot-* Moonshot AI https://api.moonshot.cn/v1/chat/completions qwen-* Alibaba Qwen https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions gemini-* Google Gemini https://generativelanguage.googleapis.com/v1beta/openai/ doubao-* ByteDance Doubao https://ark.cn-beijing.volces.com/api/v3/chat/completions glm-* THUDM GLM https://open.bigmodel.cn/api/paas/v4/chat/completions deepseek-* DeepSeek https://api.deepseek.com/chat/completions qianfan-* Baidu Qianfan https://qianfan.baidubce.com/v2/chat/completions 所以如果你要用的模型是在这清单里可以不用使用gim ai --url来配置。
阅读全文