fix(core): update
This commit is contained in:
		@@ -7,7 +7,7 @@ export class AiDoc {
 | 
			
		||||
 | 
			
		||||
  public npmextraKV: plugins.npmextra.KeyValueStore;
 | 
			
		||||
  public qenvInstance: plugins.qenv.Qenv;
 | 
			
		||||
  public smartinteractInstance: plugins.smartinteract.SmartInteract;
 | 
			
		||||
  public aidocInteract: plugins.smartinteract.SmartInteract;
 | 
			
		||||
  public openaiInstance: plugins.smartai.OpenAiProvider;
 | 
			
		||||
 | 
			
		||||
  argvArg: any;
 | 
			
		||||
@@ -33,7 +33,7 @@ export class AiDoc {
 | 
			
		||||
 | 
			
		||||
  public async start() {
 | 
			
		||||
    // lets care about prerequisites
 | 
			
		||||
    this.smartinteractInstance = new plugins.smartinteract.SmartInteract();
 | 
			
		||||
    this.aidocInteract = new plugins.smartinteract.SmartInteract();
 | 
			
		||||
    this.qenvInstance = new plugins.qenv.Qenv();
 | 
			
		||||
    if (!(await this.qenvInstance.getEnvVarOnDemand('OPENAI_TOKEN'))) {
 | 
			
		||||
      this.npmextraKV = new plugins.npmextra.KeyValueStore({
 | 
			
		||||
@@ -51,9 +51,9 @@ export class AiDoc {
 | 
			
		||||
          // lets try smartinteract
 | 
			
		||||
          // wait for a second until OpenAI fixes punycode problem...
 | 
			
		||||
          await plugins.smartdelay.delayFor(1000);
 | 
			
		||||
          const answerObject = await this.smartinteractInstance.askQuestion({
 | 
			
		||||
          const answerObject = await this.aidocInteract.askQuestion({
 | 
			
		||||
            type: 'input',
 | 
			
		||||
            message: `Please provide your OpenAI token`,
 | 
			
		||||
            message: `Please provide your OpenAI token. This will be persisted in your home directory.`,
 | 
			
		||||
            name: 'OPENAI_TOKEN',
 | 
			
		||||
            default: '',
 | 
			
		||||
          });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user