Skip to content

Commit

Permalink
feat: add conflate options
Browse files Browse the repository at this point in the history
  • Loading branch information
tokebe committed Mar 8, 2024
1 parent 15d2197 commit cd90746
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/sri.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cd90746

Please sign in to comment.