Pioneering the Connected Operations Cloud to increase the efficiency, safety & sustainability of the operations that power the global economy.
Emit new event when a job is completed on a Samsara route.
Emit new event when a new batch is completed in OpenAI. See the documentation
Emit new event when a new file is created in OpenAI. See the documentation
Adds a new address to the organization. The user must provide the necessary props such as formatted address, geofence, and name. See the documentation
The Chat API, using the gpt-3.5-turbo
or gpt-4
model. See the documentation
Summarizes text using the Chat API. See the documentation
Generates a new route to an existing address. As a prerequisite, the user must create an address using the 'create-address' action if the location is not already available in the address book. The user must provide the necessary props such as destination address.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
samsara: {
type: "app",
app: "samsara",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.samsara.$auth.base_url}/users`,
headers: {
Authorization: `Bearer ${this.samsara.$auth.api_token}`,
},
})
},
})
OpenAI provides a suite of powerful AI models through its API, enabling developers to integrate advanced natural language processing and generative capabilities into their applications. Here’s an overview of the services offered by OpenAI's API:
Use Python or Node.js code to make fully authenticated API requests with your OpenAI account:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
openai: {
type: "app",
app: "openai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.openai.com/v1/models`,
headers: {
Authorization: `Bearer ${this.openai.$auth.api_key}`,
},
})
},
})