agents-js-oasst / src /lib /agents /getInference.ts
nsarrazin's picture
first commit
57e16da
raw
history blame
217 Bytes
import { HfInference } from '@huggingface/inference';
import { get } from 'svelte/store';
import { HF_ACCESS_TOKEN } from '../store';
export function getInference() {
return new HfInference(get(HF_ACCESS_TOKEN));
}