with Yext and OpenAI Passthrough?
The Chat API, using the gpt-3.5-turbo
or gpt-4
model. See the documentation
Summarizes text using the OpenAI API. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
yext: {
type: "app",
app: "yext",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.yext.$auth.api_url}/v2/accounts`,
headers: {
Authorization: `Bearer ${this.yext.$auth.oauth_access_token}`,
},
params: {
access_token: `${this.yext.$auth.oauth_access_token}`,
"v": `20240120`,
},
})
},
})
export default defineComponent({
props: {
openai_passthrough: {
type: "app",
app: "openai_passthrough",
}
},
async run({steps, $}) {
},
})