Spaces:
Sleeping
Sleeping
Download types/plugin.ts from matthoffner/starchat-ui: direct link, hf CLI and curl.
- Browser
- Download file 715 Bytes
-
https://huggingface.co/spaces/matthoffner/starchat-ui/resolve/main/types/plugin.ts
- Command line
-
hf download hf://spaces/matthoffner/starchat-ui/types/plugin.ts
-
curl -L -o plugin.ts https://huggingface.co/spaces/matthoffner/starchat-ui/resolve/main/types/plugin.ts
715 Bytes
| 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); | |