File tree Expand file tree Collapse file tree 9 files changed +214
-211
lines changed Expand file tree Collapse file tree 9 files changed +214
-211
lines changed Original file line number Diff line number Diff line change 25
25
"useTabs": false
26
26
}
27
27
],
28
- "@cspell/spellchecker": ["warn", { "customWordListFile": ".cspell-wordlist.txt" }]
29
-
28
+ "@cspell/spellchecker": ["warn", { "customWordListFile": ".cspell-wordlist.txt" }],
29
+ "camelcase": "error"
30
30
},
31
31
"plugins": [
32
32
"eslint-plugin-prettier"
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ type OCRLanguage =
60
60
| ' be'
61
61
| ' bg'
62
62
| ' bs'
63
- | ' ch_sim '
63
+ | ' chSim '
64
64
| ' che'
65
65
| ' cs'
66
66
| ' cy'
@@ -100,8 +100,8 @@ type OCRLanguage =
100
100
| ' pt'
101
101
| ' ro'
102
102
| ' ru'
103
- | ' rs_cyrillic '
104
- | ' rs_latin '
103
+ | ' rsCyrillic '
104
+ | ' rsLatin '
105
105
| ' sk'
106
106
| ' sl'
107
107
| ' sq'
@@ -217,72 +217,72 @@ function App() {
217
217
218
218
## Supported languages
219
219
220
- | Language | Code Name |
221
- | :----------------: | :--------- : |
222
- | Abaza | abq |
223
- | Adyghe | ady |
224
- | Africans | af |
225
- | Avar | ava |
226
- | Azerbaijani | az |
227
- | Belarusian | be |
228
- | Bulgarian | bg |
229
- | Bosnian | bs |
230
- | Simplified Chinese | ch_sim |
231
- | Chechen | che |
232
- | Chech | cs |
233
- | Welsh | cy |
234
- | Danish | da |
235
- | Dargwa | dar |
236
- | German | de |
237
- | English | en |
238
- | Spanish | es |
239
- | Estonian | et |
240
- | French | fr |
241
- | Irish | ga |
242
- | Croatian | hr |
243
- | Hungarian | hu |
244
- | Indonesian | id |
245
- | Ingush | inh |
246
- | Icelandic | ic |
247
- | Italian | it |
248
- | Japanese | ja |
249
- | Karbadian | kbd |
250
- | Kannada | kn |
251
- | Korean | ko |
252
- | Kurdish | ku |
253
- | Latin | la |
254
- | Lak | lbe |
255
- | Lezghian | lez |
256
- | Lithuanian | lt |
257
- | Latvian | lv |
258
- | Maori | mi |
259
- | Mongolian | mn |
260
- | Malay | ms |
261
- | Maltese | mt |
262
- | Dutch | nl |
263
- | Norwegian | no |
264
- | Occitan | oc |
265
- | Pali | pi |
266
- | Polish | pl |
267
- | Portuguese | pt |
268
- | Romanian | ro |
269
- | Russian | ru |
270
- | Serbian (Cyrillic) | rs_cyrillic |
271
- | Serbian (Latin) | rs_latin |
272
- | Slovak | sk |
273
- | Slovenian | sl |
274
- | Albanian | sq |
275
- | Swedish | sv |
276
- | Swahili | sw |
277
- | Tabassaran | tab |
278
- | Telugu | te |
279
- | Thai | th |
280
- | Tajik | tjk |
281
- | Tagalog | tl |
282
- | Turkish | tr |
283
- | Ukrainian | uk |
284
- | Uzbek | uz |
285
- | Vietnamese | vi |
220
+ | Language | Code Name |
221
+ | :----------------: | :--------: |
222
+ | Abaza | abq |
223
+ | Adyghe | ady |
224
+ | Africans | af |
225
+ | Avar | ava |
226
+ | Azerbaijani | az |
227
+ | Belarusian | be |
228
+ | Bulgarian | bg |
229
+ | Bosnian | bs |
230
+ | Simplified Chinese | chSim |
231
+ | Chechen | che |
232
+ | Chech | cs |
233
+ | Welsh | cy |
234
+ | Danish | da |
235
+ | Dargwa | dar |
236
+ | German | de |
237
+ | English | en |
238
+ | Spanish | es |
239
+ | Estonian | et |
240
+ | French | fr |
241
+ | Irish | ga |
242
+ | Croatian | hr |
243
+ | Hungarian | hu |
244
+ | Indonesian | id |
245
+ | Ingush | inh |
246
+ | Icelandic | ic |
247
+ | Italian | it |
248
+ | Japanese | ja |
249
+ | Karbadian | kbd |
250
+ | Kannada | kn |
251
+ | Korean | ko |
252
+ | Kurdish | ku |
253
+ | Latin | la |
254
+ | Lak | lbe |
255
+ | Lezghian | lez |
256
+ | Lithuanian | lt |
257
+ | Latvian | lv |
258
+ | Maori | mi |
259
+ | Mongolian | mn |
260
+ | Malay | ms |
261
+ | Maltese | mt |
262
+ | Dutch | nl |
263
+ | Norwegian | no |
264
+ | Occitan | oc |
265
+ | Pali | pi |
266
+ | Polish | pl |
267
+ | Portuguese | pt |
268
+ | Romanian | ro |
269
+ | Russian | ru |
270
+ | Serbian (Cyrillic) | rsCyrillic |
271
+ | Serbian (Latin) | rsLatin |
272
+ | Slovak | sk |
273
+ | Slovenian | sl |
274
+ | Albanian | sq |
275
+ | Swedish | sv |
276
+ | Swahili | sw |
277
+ | Tabassaran | tab |
278
+ | Telugu | te |
279
+ | Thai | th |
280
+ | Tajik | tjk |
281
+ | Tagalog | tl |
282
+ | Turkish | tr |
283
+ | Ukrainian | uk |
284
+ | Uzbek | uz |
285
+ | Vietnamese | vi |
286
286
287
287
## Supported models
288
288
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ type OCRLanguage =
71
71
| ' be'
72
72
| ' bg'
73
73
| ' bs'
74
- | ' ch_sim '
74
+ | ' chSim '
75
75
| ' che'
76
76
| ' cs'
77
77
| ' cy'
@@ -111,8 +111,8 @@ type OCRLanguage =
111
111
| ' pt'
112
112
| ' ro'
113
113
| ' ru'
114
- | ' rs_cyrillic '
115
- | ' rs_latin '
114
+ | ' rsCyrillic '
115
+ | ' rsLatin '
116
116
| ' sk'
117
117
| ' sl'
118
118
| ' sq'
@@ -237,72 +237,72 @@ function App() {
237
237
238
238
## Supported languages
239
239
240
- | Language | Code Name |
241
- | :----------------: | :--------- : |
242
- | Abaza | abq |
243
- | Adyghe | ady |
244
- | Africans | af |
245
- | Avar | ava |
246
- | Azerbaijani | az |
247
- | Belarusian | be |
248
- | Bulgarian | bg |
249
- | Bosnian | bs |
250
- | Simplified Chinese | ch_sim |
251
- | Chechen | che |
252
- | Chech | cs |
253
- | Welsh | cy |
254
- | Danish | da |
255
- | Dargwa | dar |
256
- | German | de |
257
- | English | en |
258
- | Spanish | es |
259
- | Estonian | et |
260
- | French | fr |
261
- | Irish | ga |
262
- | Croatian | hr |
263
- | Hungarian | hu |
264
- | Indonesian | id |
265
- | Ingush | inh |
266
- | Icelandic | ic |
267
- | Italian | it |
268
- | Japanese | ja |
269
- | Karbadian | kbd |
270
- | Kannada | kn |
271
- | Korean | ko |
272
- | Kurdish | ku |
273
- | Latin | la |
274
- | Lak | lbe |
275
- | Lezghian | lez |
276
- | Lithuanian | lt |
277
- | Latvian | lv |
278
- | Maori | mi |
279
- | Mongolian | mn |
280
- | Malay | ms |
281
- | Maltese | mt |
282
- | Dutch | nl |
283
- | Norwegian | no |
284
- | Occitan | oc |
285
- | Pali | pi |
286
- | Polish | pl |
287
- | Portuguese | pt |
288
- | Romanian | ro |
289
- | Russian | ru |
290
- | Serbian (Cyrillic) | rs_cyrillic |
291
- | Serbian (Latin) | rs_latin |
292
- | Slovak | sk |
293
- | Slovenian | sl |
294
- | Albanian | sq |
295
- | Swedish | sv |
296
- | Swahili | sw |
297
- | Tabassaran | tab |
298
- | Telugu | te |
299
- | Thai | th |
300
- | Tajik | tjk |
301
- | Tagalog | tl |
302
- | Turkish | tr |
303
- | Ukrainian | uk |
304
- | Uzbek | uz |
305
- | Vietnamese | vi |
240
+ | Language | Code Name |
241
+ | :----------------: | :--------: |
242
+ | Abaza | abq |
243
+ | Adyghe | ady |
244
+ | Africans | af |
245
+ | Avar | ava |
246
+ | Azerbaijani | az |
247
+ | Belarusian | be |
248
+ | Bulgarian | bg |
249
+ | Bosnian | bs |
250
+ | Simplified Chinese | chSim |
251
+ | Chechen | che |
252
+ | Chech | cs |
253
+ | Welsh | cy |
254
+ | Danish | da |
255
+ | Dargwa | dar |
256
+ | German | de |
257
+ | English | en |
258
+ | Spanish | es |
259
+ | Estonian | et |
260
+ | French | fr |
261
+ | Irish | ga |
262
+ | Croatian | hr |
263
+ | Hungarian | hu |
264
+ | Indonesian | id |
265
+ | Ingush | inh |
266
+ | Icelandic | ic |
267
+ | Italian | it |
268
+ | Japanese | ja |
269
+ | Karbadian | kbd |
270
+ | Kannada | kn |
271
+ | Korean | ko |
272
+ | Kurdish | ku |
273
+ | Latin | la |
274
+ | Lak | lbe |
275
+ | Lezghian | lez |
276
+ | Lithuanian | lt |
277
+ | Latvian | lv |
278
+ | Maori | mi |
279
+ | Mongolian | mn |
280
+ | Malay | ms |
281
+ | Maltese | mt |
282
+ | Dutch | nl |
283
+ | Norwegian | no |
284
+ | Occitan | oc |
285
+ | Pali | pi |
286
+ | Polish | pl |
287
+ | Portuguese | pt |
288
+ | Romanian | ro |
289
+ | Russian | ru |
290
+ | Serbian (Cyrillic) | rsCyrillic |
291
+ | Serbian (Latin) | rsLatin |
292
+ | Slovak | sk |
293
+ | Slovenian | sl |
294
+ | Albanian | sq |
295
+ | Swedish | sv |
296
+ | Swahili | sw |
297
+ | Tabassaran | tab |
298
+ | Telugu | te |
299
+ | Thai | th |
300
+ | Tajik | tjk |
301
+ | Tagalog | tl |
302
+ | Turkish | tr |
303
+ | Ukrainian | uk |
304
+ | Uzbek | uz |
305
+ | Vietnamese | vi |
306
306
307
307
## Supported models
308
308
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ type OCRLanguage =
58
58
| ' be'
59
59
| ' bg'
60
60
| ' bs'
61
- | ' ch_sim '
61
+ | ' chSim '
62
62
| ' che'
63
63
| ' cs'
64
64
| ' cy'
@@ -98,8 +98,8 @@ type OCRLanguage =
98
98
| ' pt'
99
99
| ' ro'
100
100
| ' ru'
101
- | ' rs_cyrillic '
102
- | ' rs_latin '
101
+ | ' rsCyrillic '
102
+ | ' rsLatin '
103
103
| ' sk'
104
104
| ' sl'
105
105
| ' sq'
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ type OCRLanguage =
66
66
| ' be'
67
67
| ' bg'
68
68
| ' bs'
69
- | ' ch_sim '
69
+ | ' chSim '
70
70
| ' che'
71
71
| ' cs'
72
72
| ' cy'
@@ -106,8 +106,8 @@ type OCRLanguage =
106
106
| ' pt'
107
107
| ' ro'
108
108
| ' ru'
109
- | ' rs_cyrillic '
110
- | ' rs_latin '
109
+ | ' rsCyrillic '
110
+ | ' rsLatin '
111
111
| ' sk'
112
112
| ' sl'
113
113
| ' sq'
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -186,6 +186,7 @@ export class LLMController {
186
186
messages ,
187
187
this . tokenizerConfig ,
188
188
tools ,
189
+ // eslint-disable-next-line camelcase
189
190
{ tools_in_user_message : false , add_generation_prompt : true }
190
191
) ;
191
192
Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ export enum SpeechToTextLanguage {
69
69
Romanian = 'ro' ,
70
70
Russian = 'ru' ,
71
71
Serbian = 'sr' ,
72
- // eslint-disable-next-line @cspell/spellchecker
73
72
Sinhala = 'si' ,
74
73
Slovak = 'sk' ,
75
74
Slovenian = 'sl' ,
Original file line number Diff line number Diff line change @@ -137,9 +137,12 @@ export class ResourceFetcher {
137
137
private static hashObject ( jsonString : string ) {
138
138
let hash = 0 ;
139
139
for ( let i = 0 ; i < jsonString . length ; i ++ ) {
140
+ // eslint-disable-next-line no-bitwise
140
141
hash = ( hash << 5 ) - hash + jsonString . charCodeAt ( i ) ;
142
+ // eslint-disable-next-line no-bitwise
141
143
hash |= 0 ;
142
144
}
145
+ // eslint-disable-next-line no-bitwise
143
146
return ( hash >>> 0 ) . toString ( ) ;
144
147
}
145
148
You can’t perform that action at this time.
0 commit comments