with xAI and CoinMarketCal?
Create an embedding vector representation corresponding to the input text. See the documentation
Obtain a list of all available event categories in CoinMarketCal. See the docs here
Obtain a list of all available coins in CoinMarketCal. See the docs here
Create a language model response for a chat conversation. 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}`,
}
})
},
})
CoinMarketCal API delivers information on cryptocurrency events. It can serve as a critical data source for market sentiment analysis, trading, and investment strategies. With Pipedream, you can trigger workflows based on this data, process and analyze it, or connect it to other services to create comprehensive crypto market tools.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
coinmarketcal: {
type: "app",
app: "coinmarketcal",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://developers.coinmarketcal.com/v1/events`,
headers: {
"x-api-key": `${this.coinmarketcal.$auth.api_key}`,
},
})
},
})