import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
deepseek: {
type: "app",
app: "deepseek",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.deepseek.$auth.base_url}/user/balance`,
headers: {
Authorization: `Bearer ${this.deepseek.$auth.api_key}`,
},
})
},
})
Creates a chat completion using the DeepSeek API. See the documentation
Lists the currently available models, and provides basic information about each one such as the owner and availability. See the documentation
DeepSeek uses API keys for authentication. When you connect your DeepSeek account, Pipedream securely stores the keys so you can easily authenticate to DeepSeek APIs in both code and no-code steps.