import {
  commonConfig,
  environment
} from "./chunk-P7K2QEDI.js";
import {
  HttpClient,
  ɵɵdefineInjectable,
  ɵɵinject
} from "./chunk-GKZIWABI.js";

// src/app/@lcp-framework/service/common/openai.service.ts
var _OpenaiService = class _OpenaiService {
  constructor(http) {
    this.http = http;
  }
  syncTableSchema() {
    return this.http.get(`${environment.apiUrl}${environment.apiAddress}${commonConfig.API.syncTableSchema}`);
  }
  generateAiQuery(data) {
    return this.http.post(`${environment.apiUrl}${environment.apiAddress}${commonConfig.API.generateAiQuery}`, data);
  }
  getResultFromQuery(data) {
    return this.http.post(`${environment.apiUrl}${environment.apiAddress}${commonConfig.API.getResultFromQuery}`, data);
  }
  generateVectorForTable(data) {
    return this.http.post(`${environment.apiUrl}${environment.apiAddress}${commonConfig.API.generateVectorForTable}`, data);
  }
  generateVectorForAllTable() {
    return this.http.get(`${environment.apiUrl}${environment.apiAddress}${commonConfig.API.generateVector}`);
  }
};
_OpenaiService.\u0275fac = function OpenaiService_Factory(t) {
  return new (t || _OpenaiService)(\u0275\u0275inject(HttpClient));
};
_OpenaiService.\u0275prov = /* @__PURE__ */ \u0275\u0275defineInjectable({ token: _OpenaiService, factory: _OpenaiService.\u0275fac, providedIn: "root" });
var OpenaiService = _OpenaiService;

export {
  OpenaiService
};
//# sourceMappingURL=chunk-TIV2UYBT.js.map
