props-ai
v0.0.12
Published
Props AI Node API Library
Downloads
20
Readme
propsai-node
NOTE: This sdk needs a Props AI account - www.getProps.ai
Contact [email protected]
// Example usage:
(async () => {
const propsAI = new PropsAI({
apiKey: "<TEST_NODE_SDK_API_KEY>",
providersKeys: {
openai: "<TEST_NODE_SDK_OPENAI_KEY>",
groq: "<TEST_NODE_SDK_GROQ_KEY>",
anthropic: "<TEST_NODE_SDK_ANTHROPIC_KEY>",
google: "<TEST_NODE_SDK_GOOGLE_KEY>",
},
});
try {
const postResponse = await propsAI.sendFeedback(
"feedbackIdTest",
"<TEST_NODE_SDK_EXPERIMENT_ID>",
"<TEST_NODE_SDK_CONTEXT_ID>",
"metricIdTest",
"feedbackValueTest"
);
console.log(POST response status: ${postResponse.status_code}
);
console.log(
POST response body: ${JSON.stringify(postResponse.response_text)}
);
} catch (error: any) {
console.error("Error in example usage:", error.message);
}
})();