import { CloudClient } from "chromadb";
export default defineComponent({
props: {
chroma_cloud: {
type: "app",
app: "chroma_cloud",
}
},
async run({ steps, $ }) {
const client = new CloudClient({
apiKey: this.chroma_cloud.$auth.api_key,
tenant: this.chroma_cloud.$auth.tenant_id,
database: this.chroma_cloud.$auth.database
});
return await client.listCollections();
},
})
Chroma Cloud uses API keys for authentication. When you connect your Chroma Cloud account, Pipedream securely stores the keys so you can easily authenticate to Chroma Cloud APIs in both code and no-code steps.