From cd907464b82c6e7f6974df111b56660014cef0a9 Mon Sep 17 00:00:00 2001 From: tokebe <43009413+tokebe@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:46:02 -0500 Subject: [PATCH] feat: add conflate options --- src/sri.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sri.ts b/src/sri.ts index 358bb03..043f23a 100644 --- a/src/sri.ts +++ b/src/sri.ts @@ -44,7 +44,11 @@ async function query(api_input: string[]) { `Node/${process.version} ${process.platform}`, ].join(' '); const axios_queries = chunked_input.map((input) => { - return axios.post(url, { curies: input }, { headers: { 'User-Agent': userAgent } }); + return axios.post( + url, + { curies: input, conflate: true, drug_chemical_conflate: true }, + { headers: { 'User-Agent': userAgent } }, + ); }); //convert res array into single object with all curies let res = await Promise.all(axios_queries);