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

Added support for "gpt-3.5-turbo-16K" #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adityabrahmankar
Copy link

This pull request solves #40 and introduces support for the new GPT-3.5 Turbo 16k model, which has a higher character limit of 24,000. The existing codebase is updated to handle this new model and adjust the maximum character length accordingly. This enhancement ensures that users can take full advantage of the extended capacity of the GPT-3.5 Turbo 16k model for larger input code snippets.

Changes Made:
Added support for the "gpt-3.5-turbo-16k" model in the ModelSelect component.
Modified the handleTranslate function to set the character limit to 24,000 when using the "gpt-3.5-turbo-16k" model.
Updated the input validation to check the maximum code length based on the selected model.

Testing:
Tested the ModelSelect component with the new "gpt-3.5-turbo-16k" option to ensure proper selection and handling of the model.
Verified that the handleTranslate function correctly enforces the character limit of 24,000 for the "gpt-3.5-turbo-16k" model and retains the previous limits for other models.
Ensured that the application behaves as expected when translating code snippets with the "gpt-3.5-turbo-16k" model, and the output is displayed accurately.

@vercel
Copy link

vercel bot commented Jul 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ai-code-translator ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 28, 2023 5:52am

@ConceptzX
Copy link

Please add these updates.
ModelSelect.txt
types.txt

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.

2 participants