mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 22:19:48 +00:00
test(team): update settings test to include semanticSearchEnabled
This commit is contained in:
Generated
+5
-5
@@ -3595,7 +3595,7 @@ export const builtinProviders: Record<string, any> = {
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 204800,
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 8192,
|
||||
"cost": {
|
||||
"input": 0,
|
||||
@@ -6580,11 +6580,11 @@ export const builtinProviders: Record<string, any> = {
|
||||
"text"
|
||||
],
|
||||
"contextWindow": 262144,
|
||||
"maxTokens": 262144,
|
||||
"maxTokens": 4096,
|
||||
"cost": {
|
||||
"input": 0.06599999999999999,
|
||||
"output": 0.26,
|
||||
"cacheRead": 0.029,
|
||||
"input": 0.063,
|
||||
"output": 0.21,
|
||||
"cacheRead": 0.020999999999999998,
|
||||
"cacheWrite": 0
|
||||
}
|
||||
}
|
||||
|
||||
@@ -174,12 +174,12 @@ describe('TeamService', () => {
|
||||
})
|
||||
|
||||
const settings = await teamService.getSettings(team.id)
|
||||
expect(settings).toEqual({})
|
||||
expect(settings).toEqual({ semanticSearchEnabled: false })
|
||||
|
||||
await teamService.updateSettings(team.id, 'theme', 'dark')
|
||||
|
||||
const newSettings = await teamService.getSettings(team.id)
|
||||
expect(newSettings).toEqual({ theme: 'dark' })
|
||||
expect(newSettings).toEqual({ theme: 'dark', semanticSearchEnabled: false })
|
||||
})
|
||||
|
||||
it('should create sandbox when team is created', async () => {
|
||||
|
||||
Reference in New Issue
Block a user