File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 "useTabs": false
2626 }
2727 ],
28- "@cspell/spellchecker": ["warn", { "customWordListFile": ".cspell-wordlist.txt" }]
29-
28+ "@cspell/spellchecker": ["warn", { "customWordListFile": ".cspell-wordlist.txt" }],
29+ "camelcase": "error"
3030 },
3131 "plugins": [
3232 "eslint-plugin-prettier"
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ type OCRLanguage =
6060 | ' be'
6161 | ' bg'
6262 | ' bs'
63- | ' ch_sim '
63+ | ' chSim '
6464 | ' che'
6565 | ' cs'
6666 | ' cy'
@@ -100,8 +100,8 @@ type OCRLanguage =
100100 | ' pt'
101101 | ' ro'
102102 | ' ru'
103- | ' rs_cyrillic '
104- | ' rs_latin '
103+ | ' rsCyrillic '
104+ | ' rsLatin '
105105 | ' sk'
106106 | ' sl'
107107 | ' sq'
@@ -217,72 +217,72 @@ function App() {
217217
218218## Supported languages
219219
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 |
286286
287287## Supported models
288288
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ type OCRLanguage =
7171 | ' be'
7272 | ' bg'
7373 | ' bs'
74- | ' ch_sim '
74+ | ' chSim '
7575 | ' che'
7676 | ' cs'
7777 | ' cy'
@@ -111,8 +111,8 @@ type OCRLanguage =
111111 | ' pt'
112112 | ' ro'
113113 | ' ru'
114- | ' rs_cyrillic '
115- | ' rs_latin '
114+ | ' rsCyrillic '
115+ | ' rsLatin '
116116 | ' sk'
117117 | ' sl'
118118 | ' sq'
@@ -237,72 +237,72 @@ function App() {
237237
238238## Supported languages
239239
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 |
306306
307307## Supported models
308308
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ type OCRLanguage =
5858 | ' be'
5959 | ' bg'
6060 | ' bs'
61- | ' ch_sim '
61+ | ' chSim '
6262 | ' che'
6363 | ' cs'
6464 | ' cy'
@@ -98,8 +98,8 @@ type OCRLanguage =
9898 | ' pt'
9999 | ' ro'
100100 | ' ru'
101- | ' rs_cyrillic '
102- | ' rs_latin '
101+ | ' rsCyrillic '
102+ | ' rsLatin '
103103 | ' sk'
104104 | ' sl'
105105 | ' sq'
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ type OCRLanguage =
6666 | ' be'
6767 | ' bg'
6868 | ' bs'
69- | ' ch_sim '
69+ | ' chSim '
7070 | ' che'
7171 | ' cs'
7272 | ' cy'
@@ -106,8 +106,8 @@ type OCRLanguage =
106106 | ' pt'
107107 | ' ro'
108108 | ' ru'
109- | ' rs_cyrillic '
110- | ' rs_latin '
109+ | ' rsCyrillic '
110+ | ' rsLatin '
111111 | ' sk'
112112 | ' sl'
113113 | ' 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 {
186186 messages ,
187187 this . tokenizerConfig ,
188188 tools ,
189+ // eslint-disable-next-line camelcase
189190 { tools_in_user_message : false , add_generation_prompt : true }
190191 ) ;
191192
Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ export enum SpeechToTextLanguage {
6969 Romanian = 'ro' ,
7070 Russian = 'ru' ,
7171 Serbian = 'sr' ,
72- // eslint-disable-next-line @cspell/spellchecker
7372 Sinhala = 'si' ,
7473 Slovak = 'sk' ,
7574 Slovenian = 'sl' ,
Original file line number Diff line number Diff line change @@ -137,9 +137,12 @@ export class ResourceFetcher {
137137 private static hashObject ( jsonString : string ) {
138138 let hash = 0 ;
139139 for ( let i = 0 ; i < jsonString . length ; i ++ ) {
140+ // eslint-disable-next-line no-bitwise
140141 hash = ( hash << 5 ) - hash + jsonString . charCodeAt ( i ) ;
142+ // eslint-disable-next-line no-bitwise
141143 hash |= 0 ;
142144 }
145+ // eslint-disable-next-line no-bitwise
143146 return ( hash >>> 0 ) . toString ( ) ;
144147 }
145148
You can’t perform that action at this time.
0 commit comments