Build apps that scale with managed and intelligent SQL database in the cloud.
Triggers when a new row is added or an existing row is updated.
Emit new event when a new file is created in OpenAI. See the documentation
Emit new event when a new fine-tuning job is created in OpenAI. See the documentation
Emit new event every time a run changes its status. See the documentation
Executes a SQL query and returns the results. See the documentation
The Chat API, using the gpt-3.5-turbo
or gpt-4
model. See docs here
Inserts a new row in a table. See the documentation
Classify items into specific categories using the Chat API
The Microsoft Azure SQL Database API allows you to manage and interact with your SQL databases hosted on Azure directly from Pipedream. It provides a serverless way to run SQL queries, manage tables, and handle database management tasks. You can create, read, update, and delete database records, execute stored procedures, and perform a variety of other SQL operations. Leveraging this API on Pipedream enables you to automate workflows, respond to database events in real-time, and integrate with countless other apps and services.
import sql from "mssql"
export default defineComponent({
props: {
azure_sql: {
type: "app",
app: "azure_sql",
}
},
async run({steps, $}) {
const { host, username, password, port, database, encrypt } = this.azure_sql.$auth
const config = {
user: username,
password,
server: host,
port,
database,
authentication: {
type: 'default'
},
options: {
encrypt
}
}
await sql.connect(config);
return await sql.query`SELECT GETDATE()`
},
})
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}`,
},
})
},
})