Skip to content

Commit

Permalink
fix fetch test
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed May 31, 2024
1 parent c76e50c commit 86d195a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/sample/genaisrc/fetch.genai.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
script({
model: "openai:gpt-3.5-turbo",
tests: {
keywords: "genaiscript-workspace",
keywords: "genaiscript",
},
})

/**
* @type {any}
*/
const res = await fetch(
const res = await fetch(
"https://raw.githubusercontent.com/microsoft/genaiscript/main/package.json",
{ method: "GET" }
)
const pkg = await res.json()

def("PACKAGE", YAML.stringify(pkg))

$`Explain the purpose of the product described in PACKAGE.`
$`Explain the purpose of the product described in PACKAGE. Mention its name.`

0 comments on commit 86d195a

Please sign in to comment.