Skip to content

Commit

Permalink
remove node-fetch (#21)
Browse files Browse the repository at this point in the history
* remove node-fetch

* version bump
  • Loading branch information
sbatten authored Oct 6, 2023
1 parent 1387fde commit ab64002
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 127 deletions.
125 changes: 8 additions & 117 deletions tokenizer_ts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 10 additions & 9 deletions tokenizer_ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@microsoft/tiktokenizer",
"displayName": "tiktokenizer",
"description": "Tokenizer for OpenAI large language models.",
"version": "1.0.0",
"version": "1.0.1",
"author": {
"name": "Microsoft Corporation"
},
Expand All @@ -15,19 +15,21 @@
"bugs": {
"url": "https://github.com/Microsoft/Tokenizer/issues"
},
"engines": {
"node": ">=18.0.0"
},
"main": "dist/index.js",
"devDependencies": {
"@types/mocha": "^5.2.7",
"@types/node": "^14.14.35",
"@types/node-fetch": "^2.5.10",
"mocha": "^10.1.0",
"ts-node": "^10.9.1",
"@types/node": "^18.18.3",
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"eslint": "^7.19.0",
"eslint-config-prettier": "^7.1.0",
"eslint-plugin-prettier": "^3.3.1",
"prettier": "^1.19.1"
"mocha": "^10.1.0",
"prettier": "^1.19.1",
"ts-node": "^10.9.1"
},
"scripts": {
"test": "mocha -u tdd --require ts-node/register test/**/*.ts",
Expand All @@ -36,7 +38,6 @@
"format": "prettier --write \"./**/*.{ts,tsx}\""
},
"dependencies": {
"lru-cache": "^9.1.1",
"node-fetch": "^2.6.1"
"lru-cache": "^9.1.1"
}
}
}
1 change: 0 additions & 1 deletion tokenizer_ts/src/tokenizerBuilder.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import fetch from "node-fetch";
import * as fs from "fs";
import * as path from "path";
import { TikTokenizer } from "./tikTokenizer";
Expand Down

0 comments on commit ab64002

Please sign in to comment.