with xAI and TextRazor?
Create an embedding vector representation corresponding to the input text. See the documentation
Create a language model response for a chat conversation. See the documentation
Create a language model response for a given prompt. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
x_ai: {
type: "app",
app: "x_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.x.ai/v1/models`,
headers: {
Authorization: `Bearer ${this.x_ai.$auth.api_key}`,
}
})
},
})
The TextRazor API offers advanced natural language processing capabilities that let you analyze text, extracting entities, concepts, and categorizing content with ease. Utilizing machine learning and AI, TextRazor can break down your content into actionable data, identifying the sentiment, relationship, and structure of the text provided. It's a gold mine for developers looking to automate content analysis, enrich search capabilities, or implement AI-driven content recommendations.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
textrazor: {
type: "app",
app: "textrazor",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.textrazor.com/account/`,
headers: {
"X-TextRazor-Key": `${this.textrazor.$auth.api_key}`,
},
})
},
})