yep (note this is different from the inability to test and debug nodes):
export default defineComponent({
props: {
api_key: {
type: “string”,
label: “Cartesia API Key”,
description: “Your Cartesia API key”,
secret: true,
},
model_id: {
type: “string”,
label: “Model ID”,
description: “Cartesia model ID (e.g., zonos-v0.1-transformer)”,
default: “sonic-2”,
},
// Make these optional since they can come from previous steps
transcript: {
type: “string”,
label: “Transcript”,
description: “The text to convert to speech”,
optional: false,
},
voice_id: {
type: “string”,
label: “Voice ID”,
description: “The ID of the voice to use”,
optional: false,
},
language: {
type: “string”,
label: “Language”,
description: “Language code (e.g., en)”,
default: “en”,
}
},
In order to reproduce your issue, could you share mode details on how you exported your API Key?
On another note, is it possible for you to store the API Key in Pipedream Environment Variables instead? Pipedream Environment Variables is the recommended way to store secret: GitHub
I believe it is because you’re using the env var via prop. You’ll need to update your code to use the env directly, such as:
// To use any npm package, just import it
// import axios from "axios"
export default defineComponent({
async run({ steps, $ }) {
// Reference previous step data using the steps object and return data to use it in future steps
return process.env.TEST_VAR_1
},
})
Oh okay , is there an action missing on Pipedream side that requires you to use Code step instead? If so, you can submit a ticket on GitHub > Action Request to request for the new action, we’ll prioritize to implement the feature