钥。';
          this.saveMessageType = 'error';
          return;
        }
        if (!model) {
          this.saveMessage = '请选择 OpenAI 模型。';
          this.saveMessageType = 'error';
          return;
        }

        this.openai.apiKey = apiKey;
        this.openai.model = model;
        this.saveMessage = 'OpenAI API 配置已保存。';
        this.saveMessageType = 'success';

      } else if (this.selectedApi === 'deepseek') {
        const apiKey = this.deepseek.apiKey;
        c