mckaywrigley / ai-code-translator

Come join the best place on the internet to learn AI skills. Use code "aicodetranslator" for an extra 20% off.
https://JoinTakeoff.com
3.94k stars 589 forks source link

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

Open adityabrahmankar opened 1 year ago

adityabrahmankar commented 1 year ago

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[bot] commented 1 year ago

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 commented 1 year ago

Please add these updates. ModelSelect.txt types.txt