Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs and model to the latest gpt-4o series #284

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,11 @@ aicommits config set proxy=

#### model

Default: `gpt-3.5-turbo`
Default: `gpt-4o-mini`

The Chat Completions (`/v1/chat/completions`) model to use. Consult the list of models available in the [OpenAI Documentation](https://platform.openai.com/docs/models/model-endpoint-compatibility).

> Tip: If you have access, try upgrading to [`gpt-4`](https://platform.openai.com/docs/models/gpt-4) for next-level code analysis. It can handle double the input size, but comes at a higher cost. Check out OpenAI's website to learn more.
> Tip: If budget allows, consider upgrading to [`gpt-4o`](https://platform.openai.com/docs/models/gpt-4o) for next-level code analysis. It offers enhanced capabilities but comes at a higher cost. Check out OpenAI's website to learn more.

#### timeout

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"prepack": "pnpm build && clean-pkg-json"
},
"dependencies": {
"@dqbd/tiktoken": "^1.0.2"
"@dqbd/tiktoken": "^1.0.15"
},
"devDependencies": {
"@clack/prompts": "^0.7.0",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const configParsers = {
},
model(model?: string) {
if (!model || model.length === 0) {
return 'gpt-3.5-turbo';
return 'gpt-4o-mini';
}

return model as TiktokenModel;
Expand Down
2 changes: 1 addition & 1 deletion tests/specs/openai/conventional-commits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default testSuite(({ describe }) => {
} as ValidConfig;
const commitMessages = await generateCommitMessage(
OPENAI_KEY!,
'gpt-3.5-turbo',
'gpt-4o-mini',
config.locale,
gitDiff,
config.generate,
Expand Down