This commit is contained in:
Mckay Wrigley authored and GitHub committed 2023-04-04 09:41:24 -06:00
1 parent e8150e7195
commit e1f286efb8
19 files changed
+1685 -267

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { Plugin, PluginID } from '@/types/plugin';
export const getEndpoint = (plugin: Plugin | null) => {
if (!plugin) {
return 'api/chat';
}
if (plugin.id === PluginID.GOOGLE_SEARCH) {
return 'api/google';
}
return 'api/chat';
};