mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
feat(llm): change from using precedence list to using a sing specified provider for either chat and/or embeddings
This commit is contained in:
@@ -257,4 +257,12 @@ export class OpenAIService extends BaseAIService {
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear cached OpenAI client to force recreation with new settings
|
||||
*/
|
||||
clearCache(): void {
|
||||
this.openai = null;
|
||||
log.info('OpenAI client cache cleared');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user