Tags: appleboy/CodeGPT
Tags
fix(gemini): refactor maxTokens type to int32 across the codebase (#196) - Change the type of `maxTokens` from `int` to `int32` in multiple files - Update the function `WithMaxTokens` to accept `int32` instead of `int` - Adjust the usage of `maxTokens` in the `New` function to match the new type Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
fix(prompt): initialization and update commit message handling (#190) - Refactor `tea.NewProgram` initialization for better readability - Ensure `commitMessage` is updated with the value from `m.textarea` Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
feat: add noConfirm flag to streamline commit process (#189) - Add a `noConfirm` flag to skip the confirmation prompt - Modify `commitCmd` to check for `noConfirm` flag in preview mode - Update `prepare-commit-msg` template to include `--no_confirm` flag in `codegpt commit` command Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
feat: implement commit message editing with bubbletea UI (#187) - Add `tea` import from `github.com/charmbracelet/bubbletea` - Trim commit message before displaying it - Change confirmation prompt default to `Yes` - Add prompt to change commit message with default `No` - Add logic to handle commit message change using `bubbletea` program - Create new file `textarea.go` for handling commit message input - Implement `model` struct and functions for `textarea` interaction - Add `View` function to display commit message confirmation prompt Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
feat: improve prompt confirmation and error handling (#184) - Add prompt confirmation for commit preview summary - Add error handling for prompt confirmation - Add `github.com/erikgeiser/promptkit` to imports - Add `github.com/erikgeiser/promptkit v0.9.0` to go.mod - Add several indirect dependencies to go.mod Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
docs: enhance API service documentation and configuration - Add support for Ollama API service in the README - Add detailed instructions for configuring the Gemini API service - Remove duplicate section for Gemini API service configuration Signed-off-by: appleboy <appleboy.tw@gmail.com>
chore: update dependencies for color and openai libraries - Update `github.com/fatih/color` dependency from `v1.16.0` to `v1.17.0` - Update `github.com/sashabaranov/go-openai` dependency from `v1.23.1` to `v1.24.0` Signed-off-by: appleboy <appleboy.tw@gmail.com>
PreviousNext