Open adityabrahmankar opened 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 |
Please add these updates. ModelSelect.txt types.txt
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.