push (#414)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { Message } from './chat';
|
||||
|
||||
export interface GoogleResponse {
|
||||
message: Message;
|
||||
}
|
||||
|
||||
export interface GoogleSource {
|
||||
title: string;
|
||||
link: string;
|
||||
displayLink: string;
|
||||
snippet: string;
|
||||
image: string;
|
||||
text: string;
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
import { KeyValuePair } from './data';
|
||||
|
||||
export interface Plugin {
|
||||
id: PluginID;
|
||||
name: PluginName;
|
||||
requiredKeys: KeyValuePair[];
|
||||
}
|
||||
|
||||
export interface PluginKey {
|
||||
pluginId: PluginID;
|
||||
requiredKeys: KeyValuePair[];
|
||||
}
|
||||
|
||||
export enum PluginID {
|
||||
GOOGLE_SEARCH = 'google-search',
|
||||
}
|
||||
|
||||
export enum PluginName {
|
||||
GOOGLE_SEARCH = 'Google Search',
|
||||
}
|
||||
|
||||
export const Plugins: Record<PluginID, Plugin> = {
|
||||
[PluginID.GOOGLE_SEARCH]: {
|
||||
id: PluginID.GOOGLE_SEARCH,
|
||||
name: PluginName.GOOGLE_SEARCH,
|
||||
requiredKeys: [
|
||||
{
|
||||
key: 'GOOGLE_API_KEY',
|
||||
value: '',
|
||||
},
|
||||
{
|
||||
key: 'GOOGLE_CSE_ID',
|
||||
value: '',
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
export const PluginList = Object.values(Plugins);
|
||||
@@ -1,5 +1,6 @@
|
||||
import { Conversation } from './chat';
|
||||
import { Folder } from './folder';
|
||||
import { PluginKey } from './plugin';
|
||||
import { Prompt } from './prompt';
|
||||
|
||||
// keep track of local storage schema
|
||||
@@ -15,4 +16,6 @@ export interface LocalStorage {
|
||||
// added showChatbar and showPromptbar (3/26/23)
|
||||
showChatbar: boolean;
|
||||
showPromptbar: boolean;
|
||||
// added plugin keys (4/3/23)
|
||||
pluginKeys: PluginKey[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user