feat(server): update claude models (#13677)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Copilot now defaults to the updated Claude Sonnet 4.5 model across
experiences for improved responses.

* **Chores**
* Consolidated available Anthropic models, removing older Sonnet 3.x
variants and standardizing Sonnet 4/4.5 options.
* Updated configuration defaults and schema mappings to reference the
new Sonnet 4.5 model.

* **Tests**
* Updated unit and end-to-end tests to reference the new model to ensure
consistent behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
DarkSky
2025-09-30 10:49:55 +08:00
committed by GitHub
parent b44fdbce0c
commit b59c1f9e57
12 changed files with 37 additions and 59 deletions

View File

@@ -8,7 +8,7 @@ test.describe('AIChatWith/Attachments', () => {
test.beforeEach(async ({ loggedInPage: page, utils }) => {
await utils.testUtils.setupTestEnvironment(
page,
'claude-sonnet-4@20250514'
'claude-sonnet-4-5@20250929'
);
await utils.chatPanel.openChatPanel(page);
});

View File

@@ -8,7 +8,7 @@ test.describe('AIChatWith/Collections', () => {
test.beforeEach(async ({ loggedInPage: page, utils }) => {
await utils.testUtils.setupTestEnvironment(
page,
'claude-sonnet-4@20250514'
'claude-sonnet-4-5@20250929'
);
await utils.chatPanel.openChatPanel(page);
await utils.editor.clearAllCollections(page);

View File

@@ -9,7 +9,7 @@ test.describe('AISettings/Embedding', () => {
test.beforeEach(async ({ loggedInPage: page, utils }) => {
await utils.testUtils.setupTestEnvironment(
page,
'claude-sonnet-4@20250514'
'claude-sonnet-4-5@20250929'
);
await utils.chatPanel.openChatPanel(page);
});

View File

@@ -386,7 +386,7 @@ test.describe('paste to code block', () => {
await pressEnter(page);
await addCodeBlock(page);
const plainTextCode = [
' model: anthropic("claude-3-7-sonnet-20250219"),',
' model: anthropic("claude-sonnet-4-5-20250929"),',
' prompt: How many people will live in the world in 2040?',
' providerOptions: {',
' anthropic: {',