Skip to content

Commit 67a50b0

Browse files
authored
weighted token as lenient dict (#4611)
1 parent c0bcce2 commit 67a50b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

specification/_types/query_dsl/WeightedTokensQuery.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
import { float } from '@_types/Numeric'
21-
import { SingleKeyDictionary } from '@spec_utils/Dictionary'
21+
import { Dictionary } from '@spec_utils/Dictionary'
2222
import { QueryBase } from './abstractions'
2323
import { TokenPruningConfig } from './TokenPruningConfig'
2424

@@ -27,7 +27,7 @@ import { TokenPruningConfig } from './TokenPruningConfig'
2727
*/
2828
export class WeightedTokensQuery extends QueryBase {
2929
/** The tokens representing this query */
30-
tokens: SingleKeyDictionary<string, float>[]
30+
tokens: Dictionary<string, float> | Dictionary<string, float>[]
3131
/** Token pruning configurations */
3232
pruning_config?: TokenPruningConfig
3333
}

0 commit comments

Comments
 (0)