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

feat: use new gpt-3.5-turbo model #123

Merged
merged 5 commits into from
Mar 10, 2023
Merged

Conversation

scottarver
Copy link
Contributor

@scottarver scottarver commented Mar 2, 2023

the tokenizer that was just added doesnt have support for the new model yet, so still using the told model and 🤞 they are very similar.

I used it to generate its own commit message.

…ChatCompletionResponse instead of CreateCompletionRequest and CreateCompletionResponse
@salomartin
Copy link

This works well for me and seems to write better commit messages :-)

@juliavdkris
Copy link

juliavdkris commented Mar 6, 2023

Working pretty well for me!

I also made a slight change to the prompt: 'Write a high-level, insightful and concise Git commit message in a complete sentence in present tense for the following diff without prefacing it with anything:', which at least in my testing made it give slightly less detail-focused commit messages :)

@@ -94,7 +98,7 @@ export const generateCommitMessage = async (

return deduplicateMessages(
completion.choices
.map(choice => sanitizeMessage(choice.text!)),
.map(choice => sanitizeMessage(choice.message?.content ?? 'No Commit Message')),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should throw an error instead of falling back to a made up commit message.

const encoder = encodingForModel(model);
const model = 'gpt-3.5-turbo';
// TODO: update for the new gpt-3.5 model
const encoder = encodingForModel('text-davinci-003');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was waiting for the new one to be released but I guess there's no point in blocking the feature.

@privatenumber privatenumber merged commit afad821 into Nutlope:develop Mar 10, 2023
@privatenumber
Copy link
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants