diff --git a/src/typescript/constants/common.ts b/src/typescript/constants/common.ts index fb53593..316737c 100644 --- a/src/typescript/constants/common.ts +++ b/src/typescript/constants/common.ts @@ -11,7 +11,7 @@ import { OpenAIFunctionNames, OpenAIFunctions } from './openai'; import { PineConeFunctionNames, PineConeFunctions } from './pinecone'; import { QdrantFunctionNames, QdrantFunctions } from './qdrant'; import { WeaviateFunctionNames, WeaviateFunctions } from './weaviate'; -import { TiktokenModel, TiktokenEncoding } from '@dqbd/tiktoken'; +import { TiktokenModel, TiktokenEncoding } from 'js-tiktoken'; import { OllamaFunctionNames, OllamaFunctions } from './ollama'; import { VercelAIFunctionNames, VercelAIFunctions } from './ai'; diff --git a/src/typescript/package-lock.json b/src/typescript/package-lock.json index eab4b14..8a85075 100644 --- a/src/typescript/package-lock.json +++ b/src/typescript/package-lock.json @@ -9,7 +9,7 @@ "version": "7.1.1", "license": "MIT", "dependencies": { - "@dqbd/tiktoken": "^1.0.16", + "js-tiktoken": "^1.0.14", "json-schema-to-typescript": "^14.1.0", "ncp": "^2.0.0", "typescript": "^5.5.3" @@ -31,11 +31,6 @@ "url": "https://github.com/sponsors/philsturgeon" } }, - "node_modules/@dqbd/tiktoken": { - "version": "1.0.16", - "resolved": "https://registry.npmjs.org/@dqbd/tiktoken/-/tiktoken-1.0.16.tgz", - "integrity": "sha512-4uIrs5qxAwFVFFEP507HZIZhGOsgfaEMEWDXWalr+v+XP+wJwP60EVmkZtQyQe70IsKGVkx5umBxw4NfmU0pPg==" - }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", @@ -108,6 +103,25 @@ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, "node_modules/brace-expansion": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", @@ -393,6 +407,14 @@ "@pkgjs/parseargs": "^0.11.0" } }, + "node_modules/js-tiktoken": { + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/js-tiktoken/-/js-tiktoken-1.0.14.tgz", + "integrity": "sha512-Pk3l3WOgM9joguZY2k52+jH82RtABRgB5RdGFZNUGbOKGMVlNmafcPA3b0ITcCZPu1L9UclP1tne6aw7ZI4Myg==", + "dependencies": { + "base64-js": "^1.5.1" + } + }, "node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", diff --git a/src/typescript/package.json b/src/typescript/package.json index eae1b49..08a4bf4 100644 --- a/src/typescript/package.json +++ b/src/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@langtrase/trace-attributes", - "version": "7.1.1", + "version": "7.1.2", "description": "LangTrace - Trace Attributes", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -14,9 +14,9 @@ "author": "Karthik Kalyanaraman", "license": "MIT", "dependencies": { - "@dqbd/tiktoken": "^1.0.16", + "js-tiktoken": "^1.0.14", "json-schema-to-typescript": "^14.1.0", "ncp": "^2.0.0", "typescript": "^5.5.3" } -} +} \ No newline at end of file