with Hathr AI and OpenAI Passthrough?
Emit new event when a new document is created. See the documentation
Retrieves a list of all available documents. See the documentation
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
Uploads a document that can be used in future chat requests. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hathr_ai: {
type: "app",
app: "hathr_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.hathr.ai/v1/document/list`,
headers: {
Authorization: `Bearer ${this.hathr_ai.$auth.oauth_access_token}`,
},
})
},
})
export default defineComponent({
props: {
openai_passthrough: {
type: "app",
app: "openai_passthrough",
}
},
async run({steps, $}) {
},
})