File tree 3 files changed +4
-2
lines changed
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ const config: TypeScriptConfig & {
6
6
compilerOptions : {
7
7
allowJs : true ,
8
8
verbatimModuleSyntax : true ,
9
+ module : 'nodenext' ,
10
+ moduleResolution : 'nodenext' ,
9
11
} ,
10
12
include : [ 'src' ] ,
11
13
}
Original file line number Diff line number Diff line change @@ -119,8 +119,8 @@ await processFilesInDirectory(
119
119
await fs . writeFile (
120
120
path . join ( __dirname , `../bpeRanks/${ modelName } .js` ) ,
121
121
`/* eslint-disable */\n// @ts-nocheck\n// prettier-ignore
122
- /** @type {(string | number[])[]} */
123
122
${ jsCodeConstsForEachChunk . join ( '\n' ) }
123
+ /** @type {(string | number[])[]} */
124
124
const bpe = ${ jsCodeBpeArray } ;
125
125
${ jsCodeToResetHelperArrays . join ( '\n' ) }
126
126
export default bpe;` ,
Original file line number Diff line number Diff line change 1
- import type { EncodingName } from './mapping'
1
+ import type { EncodingName } from './mapping.js '
2
2
3
3
// this data is compiled from:
4
4
// - https://platform.openai.com/docs/models/
You can’t perform that action at this time.
0 commit comments