mirror of
https://github.com/jehna/humanify.git
synced 2026-04-29 10:35:48 +03:00
[PR #21] [CLOSED] Updating model to gpt-4o-mini #105
Labels
No labels
bug
enhancement
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/humanify#105
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jehna/humanify/pull/21
Author: @bilalba
Created: 7/29/2024
Status: ❌ Closed
Base:
main← Head:main📝 Commits (10+)
188ef95Add npm init26e14f8Add TypeScript33c35ccAdd Prettierdd2e033Add babel4806fc3Add not for ignoringa step261e919Add gpt-3.5 step for renaming variables7bffb40Add the code mode readable using small transforms0eb8b09Add plugin, remove duplicate codecbe8478Add makeNumbersLonger plugin9f526a6Add CLI interface📊 Changes
1 file changed (+0 additions, -4 deletions)
View changed files
📝
src/openai/openai.ts(+0 -4)📄 Description
Inspired by https://github.com/Acters/humanify-ng/tree/GPT4o, I decided to make a PR after testing some of the changes from there.
The openai sdk is updated to version 4.52.7 addressing #19
gpt-tokenizer is used instead of gpt3-encoder addressing #5
I am seeking to address #4 with a good enough solution of using gpt-4o-mini with the assumption that it would be intelligent enough.
I have updated the model to gpt-4o-mini and removed the option to use 4k context, since gpt-4o-mini is already cheap enough and is not constrained by context length.
However, I have still capped the context at 32k. In my testing, Using a larger context would not result in enough variable name replacements. I.e. it would only change a few function and variable names.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.