Tags: appleboy/CodeGPT
Tags
chore(deps): update direct and indirect dependencies - Bump several direct dependencies to newer patch versions, including the Anthropic client and table rendering library - Update core golang.org/x packages to their latest releases - Refresh multiple indirect dependencies to newer versions to keep the dependency tree up to date Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
fix(cmd): use MkdirAll directly for prompt folder creation - Replace file.IsDir check with direct os.MkdirAll to avoid fatal error when prompt folder does not exist - Apply fix to all three prompt folder handling cases (flag, config, default) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fix(docker): create home directory for codegpt user in container (#260) - Replace file.IsDir check with direct os.MkdirAll to avoid fatal error when config directory path does not exist - Remove -H flag from adduser so the home directory is created for the codegpt user in Docker Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
feat: add fallback to regular completion on function‑call failures - Add comment noting that some models do not support function calls and should use regular completion directly - Attempt a function‑call based completion first, then fall back to regular completion if it fails - Include error handling to retry with regular completion when the function call returns an error - Return an error when the completion response does not contain exactly one choice Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
feat: improve OpenAI response handling and token usage reporting (#246) - Ignore errors when determining if the config file exists before creating it - Add support for returning detailed prompt token usage in OpenAI responses - Use MaxCompletionTokens instead of MaxTokens when specifying completion limits - Remove redundant handling for O-series OpenAI models in completion requests Signed-off-by: appleboy <appleboy.tw@gmail.com>
fix: enhance PR title generation with retries and better errors (#243) - Add retry logic for generating the pull request title, retrying up to 3 times if the response is empty - Return an explicit error if the OpenAI API returns no choices, or if reasoning content is present (unsupported) - Improve error reporting for failed title generation attempts fix #242 Signed-off-by: appleboy <appleboy.tw@gmail.com>
PreviousNext