File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class SearchType:
18
18
19
19
20
20
class IndexType :
21
- spoken = "spoken "
21
+ spoken_word = "spoken_word "
22
22
scene = "scene"
23
23
24
24
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ def search(
101
101
self ,
102
102
query : str ,
103
103
search_type : Optional [str ] = SearchType .semantic ,
104
- index_type : Optional [str ] = IndexType .spoken ,
104
+ index_type : Optional [str ] = IndexType .spoken_word ,
105
105
result_threshold : Optional [int ] = None ,
106
106
score_threshold : Optional [float ] = None ,
107
107
dynamic_score_percentage : Optional [float ] = None ,
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ def search(
49
49
self ,
50
50
query : str ,
51
51
search_type : Optional [str ] = SearchType .semantic ,
52
- index_type : Optional [str ] = IndexType .spoken ,
52
+ index_type : Optional [str ] = IndexType .spoken_word ,
53
53
result_threshold : Optional [int ] = None ,
54
54
score_threshold : Optional [float ] = None ,
55
55
dynamic_score_percentage : Optional [float ] = None ,
@@ -155,7 +155,7 @@ def index_spoken_words(
155
155
self ._connection .post (
156
156
path = f"{ ApiPath .video } /{ self .id } /{ ApiPath .index } " ,
157
157
data = {
158
- "index_type" : IndexType .spoken ,
158
+ "index_type" : IndexType .spoken_word ,
159
159
"language_code" : language_code ,
160
160
"force" : force ,
161
161
"callback_url" : callback_url ,
You can’t perform that action at this time.
0 commit comments