@langchain/core
Advanced tools
Comparing version 0.1.62 to 0.1.63
@@ -21,2 +21,5 @@ import { InMemoryCache } from "../caches.js"; | ||
} | ||
if (modelName.startsWith("gpt-4o")) { | ||
return "gpt-4o"; | ||
} | ||
return modelName; | ||
@@ -23,0 +26,0 @@ }; |
export interface AsyncLocalStorageInterface { | ||
getStore: () => any | undefined; | ||
run: (store: any, callback: () => any) => any; | ||
run: <T>(store: any, callback: () => T) => T; | ||
} | ||
export declare class MockAsyncLocalStorage implements AsyncLocalStorageInterface { | ||
getStore(): any; | ||
run(_store: any, callback: () => any): any; | ||
run<T>(_store: any, callback: () => T): T; | ||
} | ||
@@ -9,0 +9,0 @@ declare class AsyncLocalStorageProvider { |
@@ -7,3 +7,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
run(_store, callback) { | ||
callback(); | ||
return callback(); | ||
} | ||
@@ -10,0 +10,0 @@ } |
{ | ||
"name": "@langchain/core", | ||
"version": "0.1.62", | ||
"version": "0.1.63", | ||
"description": "Core LangChain.js abstractions and schemas", | ||
@@ -46,3 +46,3 @@ "type": "module", | ||
"decamelize": "1.2.0", | ||
"js-tiktoken": "^1.0.8", | ||
"js-tiktoken": "^1.0.12", | ||
"langsmith": "~0.1.7", | ||
@@ -49,0 +49,0 @@ "ml-distance": "^4.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1799569
590
44888
Updatedjs-tiktoken@^1.0.12