@querypanel/node-sdk 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -704,6 +704,10 @@ interface AskOptions {
704
704
  * - "v2": Improved pipeline with intent planning, hybrid retrieval, schema linking, and SQL reflection
705
705
  */
706
706
  pipeline?: "v1" | "v2";
707
+ /**
708
+ * Optional OpenAI model id for v2 SQL generation. Omit to use server default.
709
+ */
710
+ model?: string;
707
711
  }
708
712
  /**
709
713
  * Intent analysis result from the v2 pipeline.
package/dist/index.d.ts CHANGED
@@ -704,6 +704,10 @@ interface AskOptions {
704
704
  * - "v2": Improved pipeline with intent planning, hybrid retrieval, schema linking, and SQL reflection
705
705
  */
706
706
  pipeline?: "v1" | "v2";
707
+ /**
708
+ * Optional OpenAI model id for v2 SQL generation. Omit to use server default.
709
+ */
710
+ model?: string;
707
711
  }
708
712
  /**
709
713
  * Intent analysis result from the v2 pipeline.
package/dist/index.js CHANGED
@@ -1721,7 +1721,8 @@ async function ask(client, queryEngine, question, options, signal) {
1721
1721
  ...options.maxRetry ? { max_retry: options.maxRetry } : {},
1722
1722
  ...tenantSettings ? { tenant_settings: tenantSettings } : {},
1723
1723
  ...databaseName ? { database: databaseName } : {},
1724
- ...metadata?.dialect ? { dialect: metadata.dialect } : {}
1724
+ ...metadata?.dialect ? { dialect: metadata.dialect } : {},
1725
+ ...options.model?.trim() ? { model: options.model.trim() } : {}
1725
1726
  },
1726
1727
  tenantId,
1727
1728
  options.userId,