with Azure OpenAI and Assembla?
Create completions for chat messages with the GPT-35-Turbo and GPT-4 models. See the documentation
Classify items into specific categories. See the documentation
Creates an image given a prompt, and returns a URL to the image. See the documentation
Summarizes a text message with the GPT-35-Turbo and GPT-4 models. See the documentation
Translate text from one language to another. See the documentation
The Azure OpenAI Service API provides access to powerful AI models that can understand and generate human-like text. With Pipedream, you can harness this capability to create a variety of serverless workflows, automating tasks like content creation, code generation, and language translation. By integrating the API with other apps on Pipedream, you can streamline processes, analyze sentiment, and even automate customer support.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
azure_openai_service: {
type: "app",
app: "azure_openai_service",
}
},
async run({steps, $}) {
const data = {
"messages": [{ role: 'user', content: "Hello, world!" }],
}
return await axios($, {
method: "post",
url: `https://${this.azure_openai_service.$auth.resource_name}.openai.azure.com/openai/deployments/${this.azure_openai_service.$auth.deployment_name}/chat/completions?api-version=2023-05-15`,
headers: {
"Content-Type": `application/json`,
"api-key": `${this.azure_openai_service.$auth.api_key}`,
},
data,
})
},
})
The Assembla API lets you tap into a robust project management platform, offering seamless automation opportunities for developers and teams. With it, you can automate ticket creation, track commits and merge requests, manage users, and synchronize project activities with other tools. It's a boon for boosting productivity and ensuring that your project's moving parts stay well-oiled and in sync.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
assembla: {
type: "app",
app: "assembla",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.assembla.com/v1/user`,
headers: {
Authorization: `Bearer ${this.assembla.$auth.oauth_access_token}`,
},
})
},
})