Skip to content

Commit

Permalink
Fix small core serialization issue (langchain-ai#3386)
Browse files Browse the repository at this point in the history
* Fix small core serialization issue

* Bump
  • Loading branch information
jacoblee93 authored Nov 23, 2023
1 parent 387f42e commit b2703a8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion langchain-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@langchain/core",
"version": "0.0.0",
"version": "0.0.1",
"description": "Core LangChain.js abstractions and schemas",
"type": "module",
"engines": {
Expand Down
2 changes: 2 additions & 0 deletions langchain-core/src/prompt_values.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export abstract class BasePromptValue extends Serializable {
export class StringPromptValue extends BasePromptValue {
lc_namespace = ["langchain_core", "prompt_values"];

lc_serializable = true;

value: string;

constructor(value: string) {
Expand Down
6 changes: 3 additions & 3 deletions langchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1380,9 +1380,9 @@
}
},
"dependencies": {
"@langchain/anthropic": "^0.0.2",
"@langchain/core": "^0.0.0",
"@langchain/openai": "^0.0.0",
"@langchain/anthropic": "^0.0.3",
"@langchain/core": "^0.0.1",
"@langchain/openai": "^0.0.1",
"binary-extensions": "^2.2.0",
"expr-eval": "^2.0.2",
"flat": "^5.0.2",
Expand Down
4 changes: 2 additions & 2 deletions libs/langchain-anthropic/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@langchain/anthropic",
"version": "0.0.2",
"version": "0.0.3",
"description": "Anthropic integrations for LangChain.js",
"type": "module",
"engines": {
Expand Down Expand Up @@ -33,7 +33,7 @@
"license": "MIT",
"dependencies": {
"@anthropic-ai/sdk": "^0.10.0",
"@langchain/core": "^0.0.0"
"@langchain/core": "~0.0.1"
},
"devDependencies": {
"@jest/globals": "^29.5.0",
Expand Down
4 changes: 2 additions & 2 deletions libs/langchain-openai/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@langchain/openai",
"version": "0.0.0",
"version": "0.0.1",
"description": "OpenAI integrations for LangChain.js",
"type": "module",
"engines": {
Expand Down Expand Up @@ -32,7 +32,7 @@
"author": "LangChain",
"license": "MIT",
"dependencies": {
"@langchain/core": "^0.0.0",
"@langchain/core": "~0.0.1",
"js-tiktoken": "^1.0.7",
"openai": "^4.19.0",
"zod-to-json-schema": "3.20.3"
Expand Down

0 comments on commit b2703a8

Please sign in to comment.