Command: Remove model override for Test command #3343
Merged
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.
Removes model override for the Generate Unit Test command
This pull request removes the model override for the Generate Unit Test command, granting users the flexibility to utilize any edit model for generating unit tests.
Previously, we defaulted to using Claude 2.0 due to observed regressions with other models, as detailed in this discussion. However, with the introduction of Claude 3 and the availability of more alternative models, Claude 2.0 is no longer the sole option for generating effective unit tests. Therefore, we can remove the override for the test command, allowing users to choose from a wider range of models.
Moreover, the regressions we noticed previously in ChatGPT 4.0 and Claude 2.1 models are no longer present from what I've tested so far.
ChatGPT 4.0:
![image](https://private-user-images.githubusercontent.com/68532117/311056618-05e320d0-621a-4fb0-b64b-9c6fce070bda.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE2Mjk1ODcsIm5iZiI6MTcyMTYyOTI4NywicGF0aCI6Ii82ODUzMjExNy8zMTEwNTY2MTgtMDVlMzIwZDAtNjIxYS00ZmIwLWI2NGItOWM2ZmNlMDcwYmRhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1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FQ)
ChatGPT 3.5 and Claude Instant struggle to follow the instructions fully due to their smaller context windows, but I don't see a point of overriding them if we have other alternatives that are proven to work fine that the users can use.
Test plan
Pick any edit model in the edit menu before running the unit test command.