31 lines
813 B
TypeScript
31 lines
813 B
TypeScript
import type { ClientOptions as OpenAIClientOptions } from 'openai';
|
|
|
|
import { defineStartupConfig, ModuleConfig } from '../../base/config';
|
|
import { StorageConfig } from '../../base/storage/config';
|
|
import type { FalConfig } from './providers/fal';
|
|
import { GoogleConfig } from './providers/google';
|
|
import { PerplexityConfig } from './providers/perplexity';
|
|
|
|
export interface CopilotStartupConfigurations {
|
|
openai?: OpenAIClientOptions;
|
|
fal?: FalConfig;
|
|
google?: GoogleConfig;
|
|
perplexity?: PerplexityConfig;
|
|
test?: never;
|
|
unsplashKey?: string;
|
|
storage: StorageConfig;
|
|
}
|
|
|
|
declare module '../config' {
|
|
interface PluginsConfig {
|
|
copilot: ModuleConfig<CopilotStartupConfigurations>;
|
|
}
|
|
}
|
|
|
|
defineStartupConfig('plugins.copilot', {
|
|
storage: {
|
|
provider: 'fs',
|
|
bucket: 'copilot',
|
|
},
|
|
});
|