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