From c5b0501ff9251fb4c72747ae8bc85f21375925e1 Mon Sep 17 00:00:00 2001 From: belingud Date: Sat, 11 Jan 2025 23:39:55 +0800 Subject: [PATCH] chore: bump version to 0.2.4 --- .bumpversion.cfg | 2 +- CHANGELOG.md | 20 ++++++++++++ README.md | 82 +++++++++++++++++++++++++++++++----------------- main.go | 2 +- pyproject.toml | 2 +- 5 files changed, 77 insertions(+), 31 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 0fa2113..5c556dd 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.2.3 +current_version = 0.2.4 commit = True tag = True diff --git a/CHANGELOG.md b/CHANGELOG.md index 8478c8e..dddbf28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,24 @@ +--- +## [0.2.4](https://github.com/belingud/gptcomet/compare/v0.2.3..v0.2.4) - 2025-01-11 + +### ⛰️ Features + +- add AI21 provider support - ([08e9c84](https://github.com/belingud/gptcomet/commit/08e9c84d0df775878132d5217886a8ba03dcd68a)) - belingud + +### 🚜 Refactor + +- change CompletionPath to pointer type - ([d4ba644](https://github.com/belingud/gptcomet/commit/d4ba6447ee520ca99ac6693d7520185cee7f2662)) - belingud + +### 📚 Documentation + +- update changelog for v0.2.3 - ([cf2f158](https://github.com/belingud/gptcomet/commit/cf2f158640fcf1247dbbb03ba9edca295defd590)) - belingud + +### ⚙️ Miscellaneous Tasks + +- update uv lock - ([414a8c5](https://github.com/belingud/gptcomet/commit/414a8c5ebc3df50ac9e51dcdc88c4fccb2b9e08c)) - belingud + + --- ## [0.2.3](https://github.com/belingud/gptcomet/compare/v0.2.2..v0.2.3) - 2025-01-10 diff --git a/README.md b/README.md index e256ca4..5e9dac3 100644 --- a/README.md +++ b/README.md @@ -14,34 +14,34 @@ - [GPTComet: AI-Powered Git Commit Message Generator](#gptcomet-ai-powered-git-commit-message-generator) - - [Overview](#overview) - - [Features](#features) - - [Installation](#installation) - - [Usage](#usage) - - [Setup](#setup) - - [Configuration Methods](#configuration-methods) - - [Provider Setup Guide](#provider-setup-guide) - - [OpenAI](#openai) - - [Gemini](#gemini) - - [Claude/Anthropic](#claudeanthropic) - - [Vertex](#vertex) - - [Azure](#azure) - - [Ollama](#ollama) - - [Other Supported Providers](#other-supported-providers) - - [Manual Provider Setup](#manual-provider-setup) - - [Commands](#commands) - - [Configuration](#configuration) - - [Supported Configuration Keys](#supported-configuration-keys) - - [file_ignore](#file_ignore) - - [provider](#provider) - - [output](#output) - - [Supported languages](#supported-languages) - - [console](#console) - - [Supported Keys](#supported-keys) - - [Example](#example) - - [Development](#development) - - [Contact](#contact) - - [License](#license) + - [Overview](#overview) + - [Features](#features) + - [Installation](#installation) + - [Usage](#usage) + - [Setup](#setup) + - [Configuration Methods](#configuration-methods) + - [Provider Setup Guide](#provider-setup-guide) + - [OpenAI](#openai) + - [Gemini](#gemini) + - [Claude/Anthropic](#claudeanthropic) + - [Vertex](#vertex) + - [Azure](#azure) + - [Ollama](#ollama) + - [Other Supported Providers](#other-supported-providers) + - [Manual Provider Setup](#manual-provider-setup) + - [Commands](#commands) + - [Configuration](#configuration) + - [Supported Configuration Keys](#supported-configuration-keys) + - [file\_ignore](#file_ignore) + - [provider](#provider) + - [output](#output) + - [Supported languages](#supported-languages) + - [console](#console) + - [Supported Keys](#supported-keys) + - [Example](#example) + - [Development](#development) + - [Contact](#contact) + - [License](#license) @@ -297,6 +297,32 @@ Enter max tokens [1024]: [GPTComet] Provider test configured successfully. ``` +Some special provider may need your custome config. Like `cloudflare`. + +> Be aware that the model name is not used in cloudflare api. + +```shell +$ gmsg newprovider + +Selected provider: cloudflare +Configure provider: + +Previous inputs: + Enter API Base URL: https://api.cloudflare.com/client/v4/accounts//ai/run + Enter model name: llama-3.3-70b-instruct-fp8-fast + Enter API key: abc************************************* + +Enter Enter max tokens (default: 1024): +> 1024 + +Provider cloudflare already has a configuration. Do you want to overwrite it? (y/N): y + +Provider cloudflare configured successfully! + +$ gmsg config set cloudflare.completion_path @cf/meta/llama-3.3-70b-instruct-fp8-fast +$ gmsg config set cloudflare.answer_path result.response +``` + ## Commands The following are the available commands for GPTComet: diff --git a/main.go b/main.go index 9722f10..bc79174 100644 --- a/main.go +++ b/main.go @@ -9,7 +9,7 @@ import ( "github.com/spf13/cobra" ) -var version = "0.2.3" +var version = "0.2.4" func main() { var ( diff --git a/pyproject.toml b/pyproject.toml index 5be537e..bf6d177 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "gptcomet" -version = "0.2.3" +version = "0.2.4" description = "GPTComet: AI-Powered Git Commit Message Generator." authors = [{ name = "belingud", email = "im.victor@qq.com" }] readme = "README.md"