From 2db4caace44b001d36f6b578797e6f35f91930f9 Mon Sep 17 00:00:00 2001 From: "Q.A.zh" <40236765+QAbot-zh@users.noreply.github.com> Date: Sat, 28 Dec 2024 15:43:27 +0000 Subject: [PATCH] fix model name --- test/model.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/model.test.ts b/test/model.test.ts index 4a19e3f4110..f3757fac2fc 100644 --- a/test/model.test.ts +++ b/test/model.test.ts @@ -81,10 +81,10 @@ describe('collectModelTable', () => { expect(result['gpt-3.5-turbo@openai'].available).toBe(true); expect(result['gpt-4@openai'].available).toBe(true); - expect(result['gpt-3.5@azure'].available).toBe(true); + expect(result['gpt-3.5-turbo@azure'].available).toBe(true); expect(result['gpt-4@azure'].available).toBe(true); expect(result['gemini-pro@google'].available).toBe(true); - expect(result['claude-3-haiku-20240307@claude'].available).toBe(true); + expect(result['claude-3-haiku-20240307@anthropic'].available).toBe(true); expect(result['grok-beta@xai'].available).toBe(true); }); test('should exclude all models when custom is "-all"', () => { @@ -93,7 +93,7 @@ describe('collectModelTable', () => { expect(result['gpt-3.5-turbo@openai'].available).toBe(false); expect(result['gpt-4@openai'].available).toBe(false); - expect(result['gpt-3.5@azure'].available).toBe(false); + expect(result['gpt-3.5-turbo@azure'].available).toBe(false); expect(result['gpt-4@azure'].available).toBe(false); expect(result['gemini-pro@google'].available).toBe(false); expect(result['claude-3-haiku-20240307@anthropic'].available).toBe(false); @@ -106,7 +106,7 @@ describe('collectModelTable', () => { expect(result['gpt-3.5-turbo@openai'].available).toBe(true); expect(result['gpt-4@openai'].available).toBe(true); - expect(result['gpt-3.5@azure'].available).toBe(false); + expect(result['gpt-3.5-turbo@azure'].available).toBe(false); expect(result['gpt-4@azure'].available).toBe(false); expect(result['gemini-pro@google'].available).toBe(true); expect(result['claude-3-haiku-20240307@anthropic'].available).toBe(true); @@ -119,7 +119,7 @@ describe('collectModelTable', () => { expect(result['gpt-3.5-turbo@openai'].available).toBe(true); expect(result['gpt-4@openai'].available).toBe(true); - expect(result['gpt-3.5@azure'].available).toBe(true); + expect(result['gpt-3.5-turbo@azure'].available).toBe(true); expect(result['gpt-4@azure'].available).toBe(true); expect(result['gemini-pro@google'].available).toBe(false); expect(result['claude-3-haiku-20240307@anthropic'].available).toBe(true); @@ -132,7 +132,7 @@ describe('collectModelTable', () => { expect(result['gpt-3.5-turbo@openai'].available).toBe(true); expect(result['gpt-4@openai'].available).toBe(true); - expect(result['gpt-3.5@azure'].available).toBe(false); + expect(result['gpt-3.5-turbo@azure'].available).toBe(false); expect(result['gpt-4@azure'].available).toBe(false); expect(result['gemini-pro@google'].available).toBe(false); expect(result['claude-3-haiku-20240307@anthropic'].available).toBe(false);