We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49125f8 commit 8b7cf33Copy full SHA for 8b7cf33
tests/gptscript.test.ts
@@ -887,10 +887,11 @@ describe("gptscript module", () => {
887
}, 20000)
888
889
test("dataset operations", async () => {
890
- const workspaceID = await g.createWorkspace("directory")
+ process.env.GPTSCRIPT_WORKSPACE_ID = await g.createWorkspace("directory")
891
+
892
const client = new gptscript.GPTScript({
893
APIKey: process.env.OPENAI_API_KEY,
- Env: ["GPTSCRIPT_WORKSPACE_ID=" + workspaceID]
894
+ Env: Object.entries(process.env).map(([k, v]) => `${k}=${v}`)
895
})
896
897
let datasetID: string
0 commit comments