with StealthGPT and Neo4j AuraDB?
Creates a new node in the Neo4j AuraDB instance. See the documentation
Creates a relationship between two existing nodes. See the documentation
Executes a Cypher query against the Neo4j AuraDB instance. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
stealthgpt: {
type: "app",
app: "stealthgpt",
}
},
async run({steps, $}) {
const data = {
"prompt": `tell me something about modern backend architecture`,
"size": `medium`,
}
return await axios($, {
method: "POST",
url: `https://stealthgpt.ai/api/stealthify/articles`,
headers: {
"Content-Type": `application/json`,
"api-token": `${this.stealthgpt.$auth.api_key}`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
neo4j_auradb: {
type: "app",
app: "neo4j_auradb",
}
},
async run({steps, $}) {
const data = {
"statement": `RETURN date() AS currentDate, datetime() AS currentDateTime`,
}
return await axios($, {
method: "post",
url: `${this.neo4j_auradb.$auth.api_url}`,
auth: {
username: `${this.neo4j_auradb.$auth.username}`,
password: `${this.neo4j_auradb.$auth.password}`,
},
data,
})
},
})