Skip to content

Commit

Permalink
Merge pull request langchain-ai#3190 from langchain-ai/release
Browse files Browse the repository at this point in the history
Release 0.0.182
  • Loading branch information
jacoblee93 authored Nov 8, 2023
2 parents 5169279 + a270c33 commit 5999335
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions langchain/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "langchain",
"version": "0.0.181",
"version": "0.0.182",
"description": "Typescript bindings for langchain",
"type": "module",
"engines": {
Expand Down Expand Up @@ -800,7 +800,7 @@
"build:esm": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist/ && rimraf dist/tests dist/**/tests",
"build:cjs": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && node scripts/move-cjs-to-dist.js && rimraf dist-cjs",
"build:watch": "node scripts/create-entrypoints.js && tsc --outDir dist/ --watch",
"build:scripts": "node scripts/create-entrypoints.js && node scripts/check-tree-shaking.js && node scripts/generate-docs-llm-compatibility-table.js",
"build:scripts": "node scripts/create-entrypoints.js && node scripts/check-tree-shaking.js",
"lint": "NODE_OPTIONS=--max-old-space-size=4096 eslint src && dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
"lint:fix": "yarn lint --fix",
"precommit": "lint-staged",
Expand Down
3 changes: 2 additions & 1 deletion langchain/src/agents/openai/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
FunctionsAgentAction,
OpenAIFunctionsAgentOutputParser,
} from "./output_parser.js";
import { formatToOpenAIFunction } from "../../tools/convert_to_openai.js";

/**
* Checks if the given action is a FunctionsAgentAction.
Expand Down Expand Up @@ -201,7 +202,7 @@ export class OpenAIAgent extends Agent {
const llm = this.llmChain.llm as ChatOpenAI;
const valuesForPrompt = { ...newInputs };
const valuesForLLM: (typeof llm)["CallOptions"] = {
tools: this.tools,
functions: this.tools.map(formatToOpenAIFunction),
};
for (const key of this.llmChain.llm.callKeys) {
if (key in inputs) {
Expand Down

0 comments on commit 5999335

Please sign in to comment.