We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c70a299 commit f994200Copy full SHA for f994200
packages/ai/src/configure.ts
@@ -168,19 +168,5 @@ export function getAIConfig(): Required<ConfigureAI> {
168
* @param config The configuration options for the AI plugin.
169
*/
170
export function configureAI(config: ConfigureAI): void {
171
- if (config.messageFilter) {
172
- AIConfig.messageFilter = config.messageFilter;
173
- }
174
-
175
- if (config.selectAiModel) {
176
- AIConfig.selectAiModel = config.selectAiModel;
177
178
179
- if (config.prepareSystemPrompt) {
180
- AIConfig.prepareSystemPrompt = config.prepareSystemPrompt;
181
182
183
- if (config.preparePrompt) {
184
- AIConfig.preparePrompt = config.preparePrompt;
185
+ Object.assign(AIConfig, config);
186
}
0 commit comments