Skip to content

Commit 002fdce

Browse files
committed
remove some dead code
1 parent 4d6b7fa commit 002fdce

File tree

3 files changed

+1
-35
lines changed

3 files changed

+1
-35
lines changed

src/client/components/Admin/ChatInstances/utils.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/server/util/oldAzureClient.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,13 @@ import { Response } from 'express'
44

55
import { AzureOptions, APIError } from '../types'
66
import { AZURE_RESOURCE, AZURE_API_KEY } from './config'
7-
import { validModels, inProduction } from '../../config'
7+
import { validModels } from '../../config'
88
import logger from './logger'
9-
import { AzureOpenAI } from 'openai'
109

1110
const endpoint = `https://${AZURE_RESOURCE}.openai.azure.com/`
1211

1312
const oldClient = new OpenAIClient(endpoint, new AzureKeyCredential(AZURE_API_KEY))
1413

15-
export const getAzureOpenAIClient = (deployment?: string) =>
16-
new AzureOpenAI({
17-
apiKey: AZURE_API_KEY,
18-
deployment,
19-
apiVersion: '2025-03-01-preview',
20-
endpoint,
21-
})
22-
2314
/**
2415
* Mock stream for testing
2516
*/

src/shared/testData.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,6 @@ export const TEST_COURSES = {
8484
},
8585
}
8686

87-
export const TEST_USER_IDS = [
88-
'hy-hlo-95971222',
89-
'hy-hlo-1442996',
90-
'otm-688bac31-4ddf-4b81-a562-6cea8260262a',
91-
'hy-hlo-129129327',
92-
'hy-hlo-45702058',
93-
'hy-hlo-1397482',
94-
]
9587
export const TEST_USERS = {
9688
enrolled: 'grp-currechat-demostudents',
9789
teachers: 'grp-currechat-demoteachers',

0 commit comments

Comments
 (0)