chore: remove data-provider and use npm package instead (#713)

* chore: remove data-provider, install npm package

* chore: replace monorepo package with npm package: librechat-data-provider

* chore: remove data-provider scripts

* chore: remove data-provider from .eslintrc.js
This commit is contained in:
Danny Avila 2023-07-27 14:49:47 -04:00 committed by GitHub
parent 777d64088b
commit 369b1f4eba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
46 changed files with 1403 additions and 3415 deletions

View file

@ -1,95 +0,0 @@
export const user = () => {
return '/api/user';
};
export const userPlugins = () => {
return '/api/user/plugins';
};
export const messages = (id: string) => {
return `/api/messages/${id}`;
};
export const abortRequest = (endpoint: string) => {
return `/api/ask/${endpoint}/abort`;
};
export const conversations = (pageNumber: string) => {
return `/api/convos?pageNumber=${pageNumber}`;
};
export const conversationById = (id: string) => {
return `/api/convos/${id}`;
};
export const updateConversation = () => {
return '/api/convos/update';
};
export const deleteConversation = () => {
return '/api/convos/clear';
};
export const search = (q: string, pageNumber: string) => {
return `/api/search?q=${q}&pageNumber=${pageNumber}`;
};
export const searchEnabled = () => {
return '/api/search/enable';
};
export const presets = () => {
return '/api/presets';
};
export const deletePreset = () => {
return '/api/presets/delete';
};
export const aiEndpoints = () => {
return '/api/endpoints';
};
export const tokenizer = () => {
return '/api/tokenizer';
};
export const login = () => {
return '/api/auth/login';
};
export const logout = () => {
return '/api/auth/logout';
};
export const register = () => {
return '/api/auth/register';
};
export const loginFacebook = () => {
return '/api/auth/facebook';
};
export const loginGoogle = () => {
return '/api/auth/google';
};
export const refreshToken = () => {
return '/api/auth/refresh';
};
export const requestPasswordReset = () => {
return '/api/auth/requestPasswordReset';
};
export const resetPassword = () => {
return '/api/auth/resetPassword';
};
export const plugins = () => {
return '/api/plugins';
};
export const config = () => {
return '/api/config';
};