fix(core): update

This commit is contained in:
Philipp Kunz 2024-04-14 02:23:56 +02:00
parent e5a348f57c
commit 1bd215d18d
2 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@git.zone/tsdoc', name: '@git.zone/tsdoc',
version: '1.1.25', version: '1.1.26',
description: 'An advanced TypeScript documentation tool leveraging AI for enhanced insights and automated documentation generation, with capabilities for automated and enhanced documentation creation tailor-made for TypeScript projects.' description: 'An advanced TypeScript documentation tool leveraging AI for enhanced insights and automated documentation generation, with capabilities for automated and enhanced documentation creation tailor-made for TypeScript projects.'
} }

View File

@ -64,6 +64,9 @@ export class AiDoc {
await this.npmextraKV.writeKey('OPENAI_TOKEN', this.openaiToken); await this.npmextraKV.writeKey('OPENAI_TOKEN', this.openaiToken);
} }
} }
if (!this.openaiToken) {
this.openaiToken = await this.npmextraKV.readKey('OPENAI_TOKEN');
}
// lets assume we have an OPENAI_Token now // lets assume we have an OPENAI_Token now
this.openaiInstance = new plugins.smartai.OpenAiProvider(this.openaiToken); this.openaiInstance = new plugins.smartai.OpenAiProvider(this.openaiToken);