import { CohereCommon } from "https://esm.town/v/rlesser/CohereCommon";
export let CohereEmbed = (key: string, texts: Array<string>, options = {}) => {
const defaultOptions = {
truncate: "END",
};
return CohereCommon(key, "embed", {
...defaultOptions,
...options,
texts,
});
};