-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
2,416 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
"clean": "rimraf build/ && node scripts/create-entrypoints.js pre", | ||
"lint": "eslint src/**/*.ts", | ||
"lint-fix": "eslint --fix src/**/*.ts", | ||
"test": "jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%", | ||
"test": "jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50% --silent", | ||
"test:single": "yarn run jest --config jest.config.cjs --testTimeout 100000 --silent" | ||
}, | ||
"packageManager": "[email protected]", | ||
|
@@ -47,10 +47,13 @@ | |
"typedoc": "^0.25.2" | ||
}, | ||
"dependencies": { | ||
"@google-cloud/aiplatform": "^3.9.0", | ||
"@google/generative-ai": "^0.1.3", | ||
"@types/object-hash": "^3.0.5", | ||
"@types/pdf-parse": "^1.1.2", | ||
"camelcase": "^8.0.0", | ||
"decamelize": "^6.0.0", | ||
"google-auth-library": "^9.4.1", | ||
"js-tiktoken": "^1.0.7", | ||
"langchain": "^0.0.149", | ||
"nanoid": "^5.0.2", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* Interface for tracking token usage in LLM/Chat LM API Calls. | ||
*/ | ||
export interface TokenUsage { | ||
completionTokens?: number; | ||
promptTokens?: number; | ||
totalTokens?: number; | ||
} |
Oops, something went wrong.