-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gateway): Cody API version config
- Fix Claude model versioning to use API version 0 for older models but not 3.5 or newer. - Fix chat client adding empty assistant message as the last message for all requests which is not longer supported by newer models. - Add support for the latest Cody API version (8) for chat completions. - Refactor the chat client to simplify logic and improve readability. ## Test plan - Verified that chat completions work as expected. - Verified that Fireworks tracing is enabled for Sourcegraph teammates. - Verified that Claude models older than 3.5 use API version 0. - Verified that Claude models 3.5 or newer does not use API version 0. - Verified that the chat client does not add an empty assistant message as the last message for all requests unless they are using older claude models.
- Loading branch information
Showing
2 changed files
with
46 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters