@cartanova/qgrid-ai-sdk 2.3.2 → 2.3.3

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.ts CHANGED
@@ -5,6 +5,8 @@ import { TelemetrySettings } from "ai";
5
5
  type QgridProviderConfig = {
6
6
  serverUrl?: string;
7
7
  defaultEffort?: string;
8
+ /** request_logs.project_name. default: process.env.QGRID_PROJECT_NAME */
9
+ projectName?: string;
8
10
  };
9
11
  /**
10
12
  * codex app-server가 지원하는 OpenAI provider options.
package/dist/index.js CHANGED
@@ -498,6 +498,7 @@ function toAiSdkUsage(usage) {
498
498
  function qgrid(modelId, config) {
499
499
  const serverUrl = config?.serverUrl ?? process.env.QGRID_URL ?? DEFAULT_SERVER_URL;
500
500
  const effort = config?.defaultEffort ?? DEFAULT_EFFORT;
501
+ const projectName = config?.projectName ?? process.env.QGRID_PROJECT_NAME;
501
502
  let clientRun = null;
502
503
  return {
503
504
  specificationVersion: "v3",
@@ -551,6 +552,7 @@ function qgrid(modelId, config) {
551
552
  ...hasTools ? { tools: tools.map(toQgridTool) } : {},
552
553
  ...jsonSchema ? { jsonSchema } : {},
553
554
  ...history.length > 0 ? { history: JSON.stringify(history) } : {},
555
+ ...projectName ? { projectName } : {},
554
556
  ...logMode ? { logMode } : {},
555
557
  ...runContext ? { runContext } : {},
556
558
  ...toolResultsPayload ? { toolResults: toolResultsPayload } : {}
@@ -652,6 +654,7 @@ function qgrid(modelId, config) {
652
654
  ...hasTools ? { tools: tools.map(toQgridTool) } : {},
653
655
  ...jsonSchema ? { jsonSchema } : {},
654
656
  ...history.length > 0 ? { history: JSON.stringify(history) } : {},
657
+ ...projectName ? { projectName } : {},
655
658
  ...logMode ? { logMode } : {},
656
659
  ...runContext ? { runContext } : {},
657
660
  ...toolResultsPayload ? { toolResults: toolResultsPayload } : {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cartanova/qgrid-ai-sdk",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "description": "AI SDK LanguageModelV3 provider for qgrid",
5
5
  "repository": {
6
6
  "type": "git",