Skip to content

Commit

Permalink
fix package import
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyam-Raghuwanshi committed May 13, 2024
1 parent b0f3e34 commit 418e8d7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ local promptTemplate = |||
Thought 3: Leonid Levin is a mathematician and computer scientist. So Pavel Urysohn
and Leonid Levin have the same type of work.
Action 3: Finish[yes]
--ALL THE OBSERVATIONS WILL BE PROVIDED BY THE USER, YOU DON't HAVE TO PROVIDE ANY OBSERVATION--
Question: {}
|||;
Expand Down Expand Up @@ -183,12 +184,11 @@ local getFinalOutput(acc) =
local main() =
std.foldl(function(acc, i)
local content = getOpenAiResponse(acc);
local actionNumber = i;
if arakoo.includes(getFinalOutput(acc), "Finish[") then
acc
else
local content = getOpenAiResponse(acc);
local actionNumber = i;
if(!std.isEmpty(content)) then
local action = extractAction(content, actionNumber);
local thought = extractThought(content, actionNumber);
Expand Down
2 changes: 1 addition & 1 deletion JS/edgechains/examples/react-chain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@arakoodev/jsonnet": "^0.2.0",
"@arakoodev/jsonnet": "file:../../../jsonnet",
"arakoodev": "file:../../arakoodev",
"axios": "^1.6.8",
"sync-rpc": "^1.3.6"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require("path");
const { ChatOpenAi } = require("arakoodev/openai");

const Jsonnet = require("@arakoodev/jsonnet/pkg/index.js");
const Jsonnet = require("@arakoodev/jsonnet");
const jsonnet = new Jsonnet();

const secretsPath = path.join(__dirname, "../../jsonnet/secrets.jsonnet");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import { ArakooServer } from "arakoodev/arakooserver";
//@ts-ignore
import Jsonnet from "@arakoodev/jsonnet/pkg/index.js";
import Jsonnet from "@arakoodev/jsonnet";
import { fileURLToPath } from "url"
import path from "path";
//@ts-ignore
Expand Down

0 comments on commit 418e8d7

Please sign in to comment.