with Upgrade.chat 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: {
upgrade_chat: {
type: "app",
app: "upgrade_chat",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.upgrade.chat/v1/orders`,
headers: {
Authorization: `Bearer ${this.upgrade_chat.$auth.token}`,
"accept": `application/json`,
},
})
},
})
export default defineComponent({
props: {
openai_passthrough: {
type: "app",
app: "openai_passthrough",
}
},
async run({steps, $}) {
},
})