Added support for "gpt-3.5-turbo-16K" #41
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.