embeddings-splitter
Version:
A typescript library to split your long texts into smaller chunks to send them to OpenAI Embeddings API
19 lines (18 loc) • 414 B
TypeScript
interface GithubFile {
name: string;
path: string;
sha: string;
size: number;
url: string;
html_url: string;
git_url: string;
download_url: string;
type: 'file' | 'dir';
_links: {
self: string;
git: string;
html: string;
};
}
export declare const getAllFilesFromGithubRepo: (url: string, githubToken: string) => Promise<GithubFile[]>;
export {};