🔧 Fix: Resolve Anthropic Client Issues 🧠 #1226
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.
Summary
This PR addresses several fixes across the Anthropic client and related services. The changes include a correct passing of client options during Anthropic client initialization, the refactoring of database interactions to occur after final client responses, the proper setting of default temperature values, and the correction of preset titles and settings for the Anthropic endpoint.
The PR also includes several critical fixes to enhance the user experience and maintain the intended functionality. Notably, a fix has been implemented in response to a user-reported issue where the model preset and temperature settings were being incorrectly altered upon editing Claude's responses. The issue, which was reproduced across multiple browsers and devices, involved the model preset defaulting to Claude-1 and disrupting user-defined temperature settings. This PR addresses this behavior to ensure consistency and reliability when interacting with the Claude models.
The PR re-introduces Claude-1.2 into the ModelService default list of models for Anthropic
Change Type
Testing
To validate the fixes, conduct thorough testing encompassing the following scenarios:
Checklist