@meetkai/mka1 0.55.25 → 0.55.26
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/README.md +410 -410
- package/bin/mcp-server.js +2272 -1970
- package/bin/mcp-server.js.map +28 -25
- package/dist/commonjs/funcs/billingCreateOrganizationBillingPortal.d.ts +2 -0
- package/dist/commonjs/funcs/billingCreateOrganizationBillingPortal.d.ts.map +1 -1
- package/dist/commonjs/funcs/billingCreateOrganizationBillingPortal.js +2 -0
- package/dist/commonjs/funcs/billingCreateOrganizationBillingPortal.js.map +1 -1
- package/dist/commonjs/funcs/billingCreateOrganizationBillingSetup.d.ts +2 -0
- package/dist/commonjs/funcs/billingCreateOrganizationBillingSetup.d.ts.map +1 -1
- package/dist/commonjs/funcs/billingCreateOrganizationBillingSetup.js +2 -0
- package/dist/commonjs/funcs/billingCreateOrganizationBillingSetup.js.map +1 -1
- package/dist/commonjs/funcs/billingGetOrganizationBilling.d.ts +2 -0
- package/dist/commonjs/funcs/billingGetOrganizationBilling.d.ts.map +1 -1
- package/dist/commonjs/funcs/billingGetOrganizationBilling.js +2 -0
- package/dist/commonjs/funcs/billingGetOrganizationBilling.js.map +1 -1
- package/dist/commonjs/funcs/billingListOrganizationBillingInvoices.d.ts +2 -0
- package/dist/commonjs/funcs/billingListOrganizationBillingInvoices.d.ts.map +1 -1
- package/dist/commonjs/funcs/billingListOrganizationBillingInvoices.js +2 -0
- package/dist/commonjs/funcs/billingListOrganizationBillingInvoices.js.map +1 -1
- package/dist/commonjs/funcs/billingSetOrganizationBillingEnabled.d.ts +2 -0
- package/dist/commonjs/funcs/billingSetOrganizationBillingEnabled.d.ts.map +1 -1
- package/dist/commonjs/funcs/billingSetOrganizationBillingEnabled.js +2 -0
- package/dist/commonjs/funcs/billingSetOrganizationBillingEnabled.js.map +1 -1
- package/dist/commonjs/funcs/billingUpdateOrganizationBillingProfile.d.ts +2 -0
- package/dist/commonjs/funcs/billingUpdateOrganizationBillingProfile.d.ts.map +1 -1
- package/dist/commonjs/funcs/billingUpdateOrganizationBillingProfile.js +2 -0
- package/dist/commonjs/funcs/billingUpdateOrganizationBillingProfile.js.map +1 -1
- package/dist/commonjs/funcs/llmAuditGetRequestTrace.d.ts +19 -0
- package/dist/commonjs/funcs/llmAuditGetRequestTrace.d.ts.map +1 -0
- package/dist/commonjs/funcs/llmAuditGetRequestTrace.js +132 -0
- package/dist/commonjs/funcs/llmAuditGetRequestTrace.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingPortal.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingPortal.js +1 -1
- package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingPortal.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingSetup.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingSetup.js +1 -1
- package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingSetup.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/billingGetOrganizationBilling.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/billingGetOrganizationBilling.js +1 -1
- package/dist/commonjs/mcp-server/tools/billingGetOrganizationBilling.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/billingListOrganizationBillingInvoices.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/billingListOrganizationBillingInvoices.js +1 -1
- package/dist/commonjs/mcp-server/tools/billingListOrganizationBillingInvoices.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/billingSetOrganizationBillingEnabled.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/billingSetOrganizationBillingEnabled.js +1 -1
- package/dist/commonjs/mcp-server/tools/billingSetOrganizationBillingEnabled.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/billingUpdateOrganizationBillingProfile.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/billingUpdateOrganizationBillingProfile.js +1 -1
- package/dist/commonjs/mcp-server/tools/billingUpdateOrganizationBillingProfile.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmAuditGetRequestTrace.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/llmAuditGetRequestTrace.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/llmAuditGetRequestTrace.js +64 -0
- package/dist/commonjs/mcp-server/tools/llmAuditGetRequestTrace.js.map +1 -0
- package/dist/commonjs/models/components/createvectorstorerequest.d.ts +1 -1
- package/dist/commonjs/models/components/embeddingmodellimits.d.ts +5 -5
- package/dist/commonjs/models/components/embeddingmodellimits.d.ts.map +1 -1
- package/dist/commonjs/models/components/embeddingmodellimits.js +6 -6
- package/dist/commonjs/models/components/embeddingmodellimits.js.map +1 -1
- package/dist/commonjs/models/components/embeddingsrequest.d.ts +1 -1
- package/dist/commonjs/models/components/vectorstore.d.ts +1 -1
- package/dist/commonjs/models/operations/getmodel.d.ts +2 -2
- package/dist/commonjs/models/operations/getrequesttrace.d.ts +203 -0
- package/dist/commonjs/models/operations/getrequesttrace.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getrequesttrace.js +277 -0
- package/dist/commonjs/models/operations/getrequesttrace.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listmodels.d.ts +2 -2
- package/dist/commonjs/react-query/billingCreateOrganizationBillingPortal.d.ts +3 -0
- package/dist/commonjs/react-query/billingCreateOrganizationBillingPortal.d.ts.map +1 -1
- package/dist/commonjs/react-query/billingCreateOrganizationBillingPortal.js +3 -0
- package/dist/commonjs/react-query/billingCreateOrganizationBillingPortal.js.map +1 -1
- package/dist/commonjs/react-query/billingCreateOrganizationBillingSetup.d.ts +3 -0
- package/dist/commonjs/react-query/billingCreateOrganizationBillingSetup.d.ts.map +1 -1
- package/dist/commonjs/react-query/billingCreateOrganizationBillingSetup.js +3 -0
- package/dist/commonjs/react-query/billingCreateOrganizationBillingSetup.js.map +1 -1
- package/dist/commonjs/react-query/billingGetOrganizationBilling.d.ts +6 -0
- package/dist/commonjs/react-query/billingGetOrganizationBilling.d.ts.map +1 -1
- package/dist/commonjs/react-query/billingGetOrganizationBilling.js +6 -0
- package/dist/commonjs/react-query/billingGetOrganizationBilling.js.map +1 -1
- package/dist/commonjs/react-query/billingListOrganizationBillingInvoices.d.ts +6 -0
- package/dist/commonjs/react-query/billingListOrganizationBillingInvoices.d.ts.map +1 -1
- package/dist/commonjs/react-query/billingListOrganizationBillingInvoices.js +6 -0
- package/dist/commonjs/react-query/billingListOrganizationBillingInvoices.js.map +1 -1
- package/dist/commonjs/react-query/billingSetOrganizationBillingEnabled.d.ts +3 -0
- package/dist/commonjs/react-query/billingSetOrganizationBillingEnabled.d.ts.map +1 -1
- package/dist/commonjs/react-query/billingSetOrganizationBillingEnabled.js +3 -0
- package/dist/commonjs/react-query/billingSetOrganizationBillingEnabled.js.map +1 -1
- package/dist/commonjs/react-query/billingUpdateOrganizationBillingProfile.d.ts +3 -0
- package/dist/commonjs/react-query/billingUpdateOrganizationBillingProfile.d.ts.map +1 -1
- package/dist/commonjs/react-query/billingUpdateOrganizationBillingProfile.js +3 -0
- package/dist/commonjs/react-query/billingUpdateOrganizationBillingProfile.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +1 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +1 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/llmAuditGetRequestTrace.core.d.ts +12 -0
- package/dist/commonjs/react-query/llmAuditGetRequestTrace.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/llmAuditGetRequestTrace.core.js +34 -0
- package/dist/commonjs/react-query/llmAuditGetRequestTrace.core.js.map +1 -0
- package/dist/commonjs/react-query/llmAuditGetRequestTrace.d.ts +28 -0
- package/dist/commonjs/react-query/llmAuditGetRequestTrace.d.ts.map +1 -0
- package/dist/commonjs/react-query/llmAuditGetRequestTrace.js +60 -0
- package/dist/commonjs/react-query/llmAuditGetRequestTrace.js.map +1 -0
- package/dist/commonjs/sdk/audit.d.ts +5 -3
- package/dist/commonjs/sdk/audit.d.ts.map +1 -1
- package/dist/commonjs/sdk/audit.js +7 -4
- package/dist/commonjs/sdk/audit.js.map +1 -1
- package/dist/commonjs/sdk/billing.d.ts +18 -0
- package/dist/commonjs/sdk/billing.d.ts.map +1 -1
- package/dist/commonjs/sdk/billing.js +18 -0
- package/dist/commonjs/sdk/billing.js.map +1 -1
- package/dist/commonjs/sdk/flags.d.ts +2 -2
- package/dist/commonjs/sdk/flags.d.ts.map +1 -1
- package/dist/commonjs/sdk/flags.js +2 -2
- package/dist/commonjs/sdk/flags.js.map +1 -1
- package/dist/commonjs/sdk/llm.d.ts +3 -0
- package/dist/commonjs/sdk/llm.d.ts.map +1 -1
- package/dist/commonjs/sdk/llm.js +4 -0
- package/dist/commonjs/sdk/llm.js.map +1 -1
- package/dist/commonjs/sdk/sdkaudit.d.ts +10 -0
- package/dist/commonjs/sdk/sdkaudit.d.ts.map +1 -0
- package/dist/commonjs/sdk/sdkaudit.js +19 -0
- package/dist/commonjs/sdk/sdkaudit.js.map +1 -0
- package/dist/esm/funcs/billingCreateOrganizationBillingPortal.d.ts +2 -0
- package/dist/esm/funcs/billingCreateOrganizationBillingPortal.d.ts.map +1 -1
- package/dist/esm/funcs/billingCreateOrganizationBillingPortal.js +2 -0
- package/dist/esm/funcs/billingCreateOrganizationBillingPortal.js.map +1 -1
- package/dist/esm/funcs/billingCreateOrganizationBillingSetup.d.ts +2 -0
- package/dist/esm/funcs/billingCreateOrganizationBillingSetup.d.ts.map +1 -1
- package/dist/esm/funcs/billingCreateOrganizationBillingSetup.js +2 -0
- package/dist/esm/funcs/billingCreateOrganizationBillingSetup.js.map +1 -1
- package/dist/esm/funcs/billingGetOrganizationBilling.d.ts +2 -0
- package/dist/esm/funcs/billingGetOrganizationBilling.d.ts.map +1 -1
- package/dist/esm/funcs/billingGetOrganizationBilling.js +2 -0
- package/dist/esm/funcs/billingGetOrganizationBilling.js.map +1 -1
- package/dist/esm/funcs/billingListOrganizationBillingInvoices.d.ts +2 -0
- package/dist/esm/funcs/billingListOrganizationBillingInvoices.d.ts.map +1 -1
- package/dist/esm/funcs/billingListOrganizationBillingInvoices.js +2 -0
- package/dist/esm/funcs/billingListOrganizationBillingInvoices.js.map +1 -1
- package/dist/esm/funcs/billingSetOrganizationBillingEnabled.d.ts +2 -0
- package/dist/esm/funcs/billingSetOrganizationBillingEnabled.d.ts.map +1 -1
- package/dist/esm/funcs/billingSetOrganizationBillingEnabled.js +2 -0
- package/dist/esm/funcs/billingSetOrganizationBillingEnabled.js.map +1 -1
- package/dist/esm/funcs/billingUpdateOrganizationBillingProfile.d.ts +2 -0
- package/dist/esm/funcs/billingUpdateOrganizationBillingProfile.d.ts.map +1 -1
- package/dist/esm/funcs/billingUpdateOrganizationBillingProfile.js +2 -0
- package/dist/esm/funcs/billingUpdateOrganizationBillingProfile.js.map +1 -1
- package/dist/esm/funcs/llmAuditGetRequestTrace.d.ts +19 -0
- package/dist/esm/funcs/llmAuditGetRequestTrace.d.ts.map +1 -0
- package/dist/esm/funcs/llmAuditGetRequestTrace.js +96 -0
- package/dist/esm/funcs/llmAuditGetRequestTrace.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingPortal.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingPortal.js +1 -1
- package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingPortal.js.map +1 -1
- package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingSetup.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingSetup.js +1 -1
- package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingSetup.js.map +1 -1
- package/dist/esm/mcp-server/tools/billingGetOrganizationBilling.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/billingGetOrganizationBilling.js +1 -1
- package/dist/esm/mcp-server/tools/billingGetOrganizationBilling.js.map +1 -1
- package/dist/esm/mcp-server/tools/billingListOrganizationBillingInvoices.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/billingListOrganizationBillingInvoices.js +1 -1
- package/dist/esm/mcp-server/tools/billingListOrganizationBillingInvoices.js.map +1 -1
- package/dist/esm/mcp-server/tools/billingSetOrganizationBillingEnabled.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/billingSetOrganizationBillingEnabled.js +1 -1
- package/dist/esm/mcp-server/tools/billingSetOrganizationBillingEnabled.js.map +1 -1
- package/dist/esm/mcp-server/tools/billingUpdateOrganizationBillingProfile.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/billingUpdateOrganizationBillingProfile.js +1 -1
- package/dist/esm/mcp-server/tools/billingUpdateOrganizationBillingProfile.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmAuditGetRequestTrace.d.ts +8 -0
- package/dist/esm/mcp-server/tools/llmAuditGetRequestTrace.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/llmAuditGetRequestTrace.js +28 -0
- package/dist/esm/mcp-server/tools/llmAuditGetRequestTrace.js.map +1 -0
- package/dist/esm/models/components/createvectorstorerequest.d.ts +1 -1
- package/dist/esm/models/components/embeddingmodellimits.d.ts +5 -5
- package/dist/esm/models/components/embeddingmodellimits.d.ts.map +1 -1
- package/dist/esm/models/components/embeddingmodellimits.js +6 -6
- package/dist/esm/models/components/embeddingmodellimits.js.map +1 -1
- package/dist/esm/models/components/embeddingsrequest.d.ts +1 -1
- package/dist/esm/models/components/vectorstore.d.ts +1 -1
- package/dist/esm/models/operations/getmodel.d.ts +2 -2
- package/dist/esm/models/operations/getrequesttrace.d.ts +203 -0
- package/dist/esm/models/operations/getrequesttrace.d.ts.map +1 -0
- package/dist/esm/models/operations/getrequesttrace.js +231 -0
- package/dist/esm/models/operations/getrequesttrace.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listmodels.d.ts +2 -2
- package/dist/esm/react-query/billingCreateOrganizationBillingPortal.d.ts +3 -0
- package/dist/esm/react-query/billingCreateOrganizationBillingPortal.d.ts.map +1 -1
- package/dist/esm/react-query/billingCreateOrganizationBillingPortal.js +3 -0
- package/dist/esm/react-query/billingCreateOrganizationBillingPortal.js.map +1 -1
- package/dist/esm/react-query/billingCreateOrganizationBillingSetup.d.ts +3 -0
- package/dist/esm/react-query/billingCreateOrganizationBillingSetup.d.ts.map +1 -1
- package/dist/esm/react-query/billingCreateOrganizationBillingSetup.js +3 -0
- package/dist/esm/react-query/billingCreateOrganizationBillingSetup.js.map +1 -1
- package/dist/esm/react-query/billingGetOrganizationBilling.d.ts +6 -0
- package/dist/esm/react-query/billingGetOrganizationBilling.d.ts.map +1 -1
- package/dist/esm/react-query/billingGetOrganizationBilling.js +6 -0
- package/dist/esm/react-query/billingGetOrganizationBilling.js.map +1 -1
- package/dist/esm/react-query/billingListOrganizationBillingInvoices.d.ts +6 -0
- package/dist/esm/react-query/billingListOrganizationBillingInvoices.d.ts.map +1 -1
- package/dist/esm/react-query/billingListOrganizationBillingInvoices.js +6 -0
- package/dist/esm/react-query/billingListOrganizationBillingInvoices.js.map +1 -1
- package/dist/esm/react-query/billingSetOrganizationBillingEnabled.d.ts +3 -0
- package/dist/esm/react-query/billingSetOrganizationBillingEnabled.d.ts.map +1 -1
- package/dist/esm/react-query/billingSetOrganizationBillingEnabled.js +3 -0
- package/dist/esm/react-query/billingSetOrganizationBillingEnabled.js.map +1 -1
- package/dist/esm/react-query/billingUpdateOrganizationBillingProfile.d.ts +3 -0
- package/dist/esm/react-query/billingUpdateOrganizationBillingProfile.d.ts.map +1 -1
- package/dist/esm/react-query/billingUpdateOrganizationBillingProfile.js +3 -0
- package/dist/esm/react-query/billingUpdateOrganizationBillingProfile.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +1 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +1 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/llmAuditGetRequestTrace.core.d.ts +12 -0
- package/dist/esm/react-query/llmAuditGetRequestTrace.core.d.ts.map +1 -0
- package/dist/esm/react-query/llmAuditGetRequestTrace.core.js +29 -0
- package/dist/esm/react-query/llmAuditGetRequestTrace.core.js.map +1 -0
- package/dist/esm/react-query/llmAuditGetRequestTrace.d.ts +28 -0
- package/dist/esm/react-query/llmAuditGetRequestTrace.d.ts.map +1 -0
- package/dist/esm/react-query/llmAuditGetRequestTrace.js +50 -0
- package/dist/esm/react-query/llmAuditGetRequestTrace.js.map +1 -0
- package/dist/esm/sdk/audit.d.ts +5 -3
- package/dist/esm/sdk/audit.d.ts.map +1 -1
- package/dist/esm/sdk/audit.js +7 -4
- package/dist/esm/sdk/audit.js.map +1 -1
- package/dist/esm/sdk/billing.d.ts +18 -0
- package/dist/esm/sdk/billing.d.ts.map +1 -1
- package/dist/esm/sdk/billing.js +18 -0
- package/dist/esm/sdk/billing.js.map +1 -1
- package/dist/esm/sdk/flags.d.ts +2 -2
- package/dist/esm/sdk/flags.d.ts.map +1 -1
- package/dist/esm/sdk/flags.js +2 -2
- package/dist/esm/sdk/flags.js.map +1 -1
- package/dist/esm/sdk/llm.d.ts +3 -0
- package/dist/esm/sdk/llm.d.ts.map +1 -1
- package/dist/esm/sdk/llm.js +4 -0
- package/dist/esm/sdk/llm.js.map +1 -1
- package/dist/esm/sdk/sdkaudit.d.ts +10 -0
- package/dist/esm/sdk/sdkaudit.d.ts.map +1 -0
- package/dist/esm/sdk/sdkaudit.js +15 -0
- package/dist/esm/sdk/sdkaudit.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/billingCreateOrganizationBillingPortal.ts +2 -0
- package/src/funcs/billingCreateOrganizationBillingSetup.ts +2 -0
- package/src/funcs/billingGetOrganizationBilling.ts +2 -0
- package/src/funcs/billingListOrganizationBillingInvoices.ts +2 -0
- package/src/funcs/billingSetOrganizationBillingEnabled.ts +2 -0
- package/src/funcs/billingUpdateOrganizationBillingProfile.ts +2 -0
- package/src/funcs/llmAuditGetRequestTrace.ts +181 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/billingCreateOrganizationBillingPortal.ts +2 -1
- package/src/mcp-server/tools/billingCreateOrganizationBillingSetup.ts +2 -1
- package/src/mcp-server/tools/billingGetOrganizationBilling.ts +2 -1
- package/src/mcp-server/tools/billingListOrganizationBillingInvoices.ts +2 -1
- package/src/mcp-server/tools/billingSetOrganizationBillingEnabled.ts +2 -1
- package/src/mcp-server/tools/billingUpdateOrganizationBillingProfile.ts +2 -1
- package/src/mcp-server/tools/llmAuditGetRequestTrace.ts +37 -0
- package/src/models/components/createvectorstorerequest.ts +1 -1
- package/src/models/components/embeddingmodellimits.ts +11 -11
- package/src/models/components/embeddingsrequest.ts +1 -1
- package/src/models/components/vectorstore.ts +1 -1
- package/src/models/operations/getmodel.ts +2 -2
- package/src/models/operations/getrequesttrace.ts +501 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listmodels.ts +2 -2
- package/src/react-query/billingCreateOrganizationBillingPortal.ts +3 -0
- package/src/react-query/billingCreateOrganizationBillingSetup.ts +3 -0
- package/src/react-query/billingGetOrganizationBilling.ts +6 -0
- package/src/react-query/billingListOrganizationBillingInvoices.ts +6 -0
- package/src/react-query/billingSetOrganizationBillingEnabled.ts +3 -0
- package/src/react-query/billingUpdateOrganizationBillingProfile.ts +3 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/llmAuditGetRequestTrace.core.ts +71 -0
- package/src/react-query/llmAuditGetRequestTrace.ts +136 -0
- package/src/sdk/audit.ts +9 -7
- package/src/sdk/billing.ts +18 -0
- package/src/sdk/flags.ts +4 -4
- package/src/sdk/llm.ts +6 -0
- package/src/sdk/sdkaudit.ts +25 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SDKCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Get a request trace
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Returns the end-to-end trace of one API request: its timing at the API gateway, every response it created (including agents it called), and each response's model invocations and tool calls with durations. Look it up by the `X-Request-ID` returned on every response, or by the API gateway's own request ID. Org owners and admins only, scoped to their own organization. Requests audited before request IDs were recorded show their gateway timing but no responses.
|
|
33
|
+
*
|
|
34
|
+
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
35
|
+
*/
|
|
36
|
+
export function llmAuditGetRequestTrace(
|
|
37
|
+
client: SDKCore,
|
|
38
|
+
request: operations.GetRequestTraceRequest,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<
|
|
41
|
+
Result<
|
|
42
|
+
operations.GetRequestTraceResponseBody,
|
|
43
|
+
| SDKError
|
|
44
|
+
| ResponseValidationError
|
|
45
|
+
| ConnectionError
|
|
46
|
+
| RequestAbortedError
|
|
47
|
+
| RequestTimeoutError
|
|
48
|
+
| InvalidRequestError
|
|
49
|
+
| UnexpectedClientError
|
|
50
|
+
| SDKValidationError
|
|
51
|
+
>
|
|
52
|
+
> {
|
|
53
|
+
return new APIPromise($do(
|
|
54
|
+
client,
|
|
55
|
+
request,
|
|
56
|
+
options,
|
|
57
|
+
));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async function $do(
|
|
61
|
+
client: SDKCore,
|
|
62
|
+
request: operations.GetRequestTraceRequest,
|
|
63
|
+
options?: RequestOptions,
|
|
64
|
+
): Promise<
|
|
65
|
+
[
|
|
66
|
+
Result<
|
|
67
|
+
operations.GetRequestTraceResponseBody,
|
|
68
|
+
| SDKError
|
|
69
|
+
| ResponseValidationError
|
|
70
|
+
| ConnectionError
|
|
71
|
+
| RequestAbortedError
|
|
72
|
+
| RequestTimeoutError
|
|
73
|
+
| InvalidRequestError
|
|
74
|
+
| UnexpectedClientError
|
|
75
|
+
| SDKValidationError
|
|
76
|
+
>,
|
|
77
|
+
APICall,
|
|
78
|
+
]
|
|
79
|
+
> {
|
|
80
|
+
const parsed = safeParse(
|
|
81
|
+
request,
|
|
82
|
+
(value) => operations.GetRequestTraceRequest$outboundSchema.parse(value),
|
|
83
|
+
"Input validation failed",
|
|
84
|
+
);
|
|
85
|
+
if (!parsed.ok) {
|
|
86
|
+
return [parsed, { status: "invalid" }];
|
|
87
|
+
}
|
|
88
|
+
const payload = parsed.value;
|
|
89
|
+
const body = null;
|
|
90
|
+
|
|
91
|
+
const pathParams = {
|
|
92
|
+
request_id: encodeSimple("request_id", payload.request_id, {
|
|
93
|
+
explode: false,
|
|
94
|
+
charEncoding: "percent",
|
|
95
|
+
}),
|
|
96
|
+
};
|
|
97
|
+
const path = pathToFunc("/api/v1/llm/audit/requests/{request_id}/trace")(
|
|
98
|
+
pathParams,
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
const headers = new Headers(compactMap({
|
|
102
|
+
Accept: "application/json",
|
|
103
|
+
}));
|
|
104
|
+
|
|
105
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
106
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
107
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
108
|
+
|
|
109
|
+
const context = {
|
|
110
|
+
options: client._options,
|
|
111
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
112
|
+
operationID: "getRequestTrace",
|
|
113
|
+
oAuth2Scopes: null,
|
|
114
|
+
|
|
115
|
+
resolvedSecurity: requestSecurity,
|
|
116
|
+
|
|
117
|
+
securitySource: client._options.bearerAuth,
|
|
118
|
+
retryConfig: options?.retries
|
|
119
|
+
|| client._options.retryConfig
|
|
120
|
+
|| {
|
|
121
|
+
strategy: "backoff",
|
|
122
|
+
backoff: {
|
|
123
|
+
initialInterval: 500,
|
|
124
|
+
maxInterval: 5000,
|
|
125
|
+
exponent: 1.5,
|
|
126
|
+
maxElapsedTime: 15000,
|
|
127
|
+
},
|
|
128
|
+
retryConnectionErrors: true,
|
|
129
|
+
}
|
|
130
|
+
|| { strategy: "none" },
|
|
131
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
const requestRes = client._createRequest(context, {
|
|
135
|
+
security: requestSecurity,
|
|
136
|
+
method: "GET",
|
|
137
|
+
baseURL: options?.serverURL,
|
|
138
|
+
path: path,
|
|
139
|
+
headers: headers,
|
|
140
|
+
body: body,
|
|
141
|
+
userAgent: client._options.userAgent,
|
|
142
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
143
|
+
}, options);
|
|
144
|
+
if (!requestRes.ok) {
|
|
145
|
+
return [requestRes, { status: "invalid" }];
|
|
146
|
+
}
|
|
147
|
+
const req = requestRes.value;
|
|
148
|
+
|
|
149
|
+
const doResult = await client._do(req, {
|
|
150
|
+
context,
|
|
151
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
152
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
153
|
+
retryConfig: context.retryConfig,
|
|
154
|
+
retryCodes: context.retryCodes,
|
|
155
|
+
});
|
|
156
|
+
if (!doResult.ok) {
|
|
157
|
+
return [doResult, { status: "request-error", request: req }];
|
|
158
|
+
}
|
|
159
|
+
const response = doResult.value;
|
|
160
|
+
|
|
161
|
+
const [result] = await M.match<
|
|
162
|
+
operations.GetRequestTraceResponseBody,
|
|
163
|
+
| SDKError
|
|
164
|
+
| ResponseValidationError
|
|
165
|
+
| ConnectionError
|
|
166
|
+
| RequestAbortedError
|
|
167
|
+
| RequestTimeoutError
|
|
168
|
+
| InvalidRequestError
|
|
169
|
+
| UnexpectedClientError
|
|
170
|
+
| SDKValidationError
|
|
171
|
+
>(
|
|
172
|
+
M.json(200, operations.GetRequestTraceResponseBody$inboundSchema),
|
|
173
|
+
M.fail("4XX"),
|
|
174
|
+
M.fail("5XX"),
|
|
175
|
+
)(response, req);
|
|
176
|
+
if (!result.ok) {
|
|
177
|
+
return [result, { status: "complete", request: req, response }];
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
return [result, { status: "complete", request: req, response }];
|
|
181
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.1.0",
|
|
68
|
-
sdkVersion: "0.55.
|
|
68
|
+
sdkVersion: "0.55.26",
|
|
69
69
|
genVersion: "2.950.2",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.55.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.55.26 2.950.2 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -220,6 +220,7 @@ import { tool$guardrailsTestGuardrails } from "./tools/guardrailsTestGuardrails.
|
|
|
220
220
|
import { tool$guardrailsUpdateClusterDefaultGuardrails } from "./tools/guardrailsUpdateClusterDefaultGuardrails.js";
|
|
221
221
|
import { tool$guardrailsUpdateClusterDefaultGuardrailsOrg } from "./tools/guardrailsUpdateClusterDefaultGuardrailsOrg.js";
|
|
222
222
|
import { tool$guardrailsUpdateGuardrails } from "./tools/guardrailsUpdateGuardrails.js";
|
|
223
|
+
import { tool$llmAuditGetRequestTrace } from "./tools/llmAuditGetRequestTrace.js";
|
|
223
224
|
import { tool$llmBatchesCancel } from "./tools/llmBatchesCancel.js";
|
|
224
225
|
import { tool$llmBatchesCreate } from "./tools/llmBatchesCreate.js";
|
|
225
226
|
import { tool$llmBatchesGet } from "./tools/llmBatchesGet.js";
|
|
@@ -515,7 +516,7 @@ export function createMCPServer(deps: {
|
|
|
515
516
|
}) {
|
|
516
517
|
const server = new McpServer({
|
|
517
518
|
name: "SDK",
|
|
518
|
-
version: "0.55.
|
|
519
|
+
version: "0.55.26",
|
|
519
520
|
});
|
|
520
521
|
|
|
521
522
|
const client = new SDKCore({
|
|
@@ -713,6 +714,7 @@ export function createMCPServer(deps: {
|
|
|
713
714
|
tool(tool$permissionsLlmGrant);
|
|
714
715
|
tool(tool$permissionsLlmRevoke);
|
|
715
716
|
tool(tool$permissionsLlmCheck);
|
|
717
|
+
tool(tool$llmAuditGetRequestTrace);
|
|
716
718
|
tool(tool$llmBatchesCreate);
|
|
717
719
|
tool(tool$llmBatchesList);
|
|
718
720
|
tool(tool$llmBatchesGet);
|
|
@@ -14,7 +14,8 @@ export const tool$billingCreateOrganizationBillingPortal: ToolDefinition<
|
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
16
|
name: "billing-create-organization-billing-portal",
|
|
17
|
-
description:
|
|
17
|
+
description:
|
|
18
|
+
`Create a payment-provider portal session for the bound organization. API keys require write:billing and either a human owner/admin or delegated service account. The organization is resolved from the API key.`,
|
|
18
19
|
args,
|
|
19
20
|
tool: async (client, args, ctx) => {
|
|
20
21
|
const [result, apiCall] = await billingCreateOrganizationBillingPortal(
|
|
@@ -14,7 +14,8 @@ export const tool$billingCreateOrganizationBillingSetup: ToolDefinition<
|
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
16
|
name: "billing-create-organization-billing-setup",
|
|
17
|
-
description:
|
|
17
|
+
description:
|
|
18
|
+
`Create a payment-provider setup session for the bound organization. API keys require write:billing and either a human owner/admin or delegated service account. The organization is resolved from the API key.`,
|
|
18
19
|
args,
|
|
19
20
|
tool: async (client, args, ctx) => {
|
|
20
21
|
const [result, apiCall] = await billingCreateOrganizationBillingSetup(
|
|
@@ -12,7 +12,8 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$billingGetOrganizationBilling: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "billing-get-organization-billing",
|
|
15
|
-
description:
|
|
15
|
+
description:
|
|
16
|
+
`Read organization billing. API keys require read:billing and either a human owner/admin or delegated service account. Keys are bound to their organization; cross-organization reads require a human cluster administrator with read:cluster.`,
|
|
16
17
|
args,
|
|
17
18
|
tool: async (client, args, ctx) => {
|
|
18
19
|
const [result, apiCall] = await billingGetOrganizationBilling(
|
|
@@ -14,7 +14,8 @@ export const tool$billingListOrganizationBillingInvoices: ToolDefinition<
|
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
16
|
name: "billing-list-organization-billing-invoices",
|
|
17
|
-
description:
|
|
17
|
+
description:
|
|
18
|
+
`List invoices for an organization. API keys require read:billing and either a human owner/admin or delegated service account. Cross-organization reads require a human cluster administrator with read:cluster.`,
|
|
18
19
|
args,
|
|
19
20
|
tool: async (client, args, ctx) => {
|
|
20
21
|
const [result, apiCall] = await billingListOrganizationBillingInvoices(
|
|
@@ -14,7 +14,8 @@ export const tool$billingSetOrganizationBillingEnabled: ToolDefinition<
|
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
16
|
name: "billing-set-organization-billing-enabled",
|
|
17
|
-
description:
|
|
17
|
+
description:
|
|
18
|
+
`Enable or disable organization billing. Requires a human cluster administrator. API keys require both write:billing and the bootstrap-only write:cluster scope. Service-account keys cannot enable or disable billing.`,
|
|
18
19
|
args,
|
|
19
20
|
tool: async (client, args, ctx) => {
|
|
20
21
|
const [result, apiCall] = await billingSetOrganizationBillingEnabled(
|
|
@@ -14,7 +14,8 @@ export const tool$billingUpdateOrganizationBillingProfile: ToolDefinition<
|
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
16
|
name: "billing-update-organization-billing-profile",
|
|
17
|
-
description:
|
|
17
|
+
description:
|
|
18
|
+
`Update the bound organization's billing profile. API keys require write:billing and either a human owner/admin or delegated service account. The organization is resolved from the API key.`,
|
|
18
19
|
args,
|
|
19
20
|
tool: async (client, args, ctx) => {
|
|
20
21
|
const [result, apiCall] = await billingUpdateOrganizationBillingProfile(
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { llmAuditGetRequestTrace } from "../../funcs/llmAuditGetRequestTrace.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.GetRequestTraceRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$llmAuditGetRequestTrace: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "llm-audit-get-request-trace",
|
|
15
|
+
description: `Get a request trace
|
|
16
|
+
|
|
17
|
+
Returns the end-to-end trace of one API request: its timing at the API gateway, every response it created (including agents it called), and each response's model invocations and tool calls with durations. Look it up by the \`X-Request-ID\` returned on every response, or by the API gateway's own request ID. Org owners and admins only, scoped to their own organization. Requests audited before request IDs were recorded show their gateway timing but no responses.`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await llmAuditGetRequestTrace(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.mcpReq.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -87,7 +87,7 @@ export type CreateVectorStoreRequest = {
|
|
|
87
87
|
*/
|
|
88
88
|
embeddingModel?: string | undefined;
|
|
89
89
|
/**
|
|
90
|
-
* The number of dimensions for the embedding vectors.
|
|
90
|
+
* The number of dimensions for the embedding vectors. Must equal the model's size when it is fixed, or lie within its range (`embedding_dimension_range` on `GET /models/{model_id}`). If not specified, uses the model's default dimensions. The store stays searchable only while the model's declared dimensions still include this size and the model returns embeddings of this width.
|
|
91
91
|
*/
|
|
92
92
|
embeddingDimensions?: number | undefined;
|
|
93
93
|
/**
|
|
@@ -13,15 +13,15 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
13
13
|
*/
|
|
14
14
|
export type EmbeddingModelLimits = {
|
|
15
15
|
/**
|
|
16
|
-
* Maximum number of inputs allowed in a single batch request
|
|
16
|
+
* Maximum number of inputs allowed in a single batch request: the model's batch size or the gateway-wide 10,000-input limit, whichever is lower, on `POST /embeddings`. Batch `/v1/embeddings` lines are held only to the model's batch size.
|
|
17
17
|
*/
|
|
18
18
|
maxBatchSize: number;
|
|
19
19
|
/**
|
|
20
|
-
* Maximum tokens per individual input
|
|
20
|
+
* Maximum tokens per individual input: the model's context window. Null when the registry records no context window: no token cap applies beyond what `max_input_length` implies. For a window long enough that its estimated character length exceeds the gateway-wide character limit, `max_input_length` binds first. Advisory on `/embeddings`, which accepts only strings and enforces `max_input_length`.
|
|
21
21
|
*/
|
|
22
|
-
maxInputTokens: number;
|
|
22
|
+
maxInputTokens: number | null;
|
|
23
23
|
/**
|
|
24
|
-
* Maximum characters per individual input
|
|
24
|
+
* Maximum characters per individual input: the cap derived from the model's context window or the gateway-wide 100,000-character limit, whichever is lower, on `POST /embeddings`. Batch `/v1/embeddings` lines are held only to the model's cap.
|
|
25
25
|
*/
|
|
26
26
|
maxInputLength: number;
|
|
27
27
|
};
|
|
@@ -32,9 +32,9 @@ export const EmbeddingModelLimits$inboundSchema: z.ZodType<
|
|
|
32
32
|
z.ZodTypeDef,
|
|
33
33
|
unknown
|
|
34
34
|
> = z.object({
|
|
35
|
-
max_batch_size: z.number(),
|
|
36
|
-
max_input_tokens: z.number(),
|
|
37
|
-
max_input_length: z.number(),
|
|
35
|
+
max_batch_size: z.number().int(),
|
|
36
|
+
max_input_tokens: z.nullable(z.number().int()),
|
|
37
|
+
max_input_length: z.number().int(),
|
|
38
38
|
}).transform((v) => {
|
|
39
39
|
return remap$(v, {
|
|
40
40
|
"max_batch_size": "maxBatchSize",
|
|
@@ -45,7 +45,7 @@ export const EmbeddingModelLimits$inboundSchema: z.ZodType<
|
|
|
45
45
|
/** @internal */
|
|
46
46
|
export type EmbeddingModelLimits$Outbound = {
|
|
47
47
|
max_batch_size: number;
|
|
48
|
-
max_input_tokens: number;
|
|
48
|
+
max_input_tokens: number | null;
|
|
49
49
|
max_input_length: number;
|
|
50
50
|
};
|
|
51
51
|
|
|
@@ -55,9 +55,9 @@ export const EmbeddingModelLimits$outboundSchema: z.ZodType<
|
|
|
55
55
|
z.ZodTypeDef,
|
|
56
56
|
EmbeddingModelLimits
|
|
57
57
|
> = z.object({
|
|
58
|
-
maxBatchSize: z.number(),
|
|
59
|
-
maxInputTokens: z.number(),
|
|
60
|
-
maxInputLength: z.number(),
|
|
58
|
+
maxBatchSize: z.number().int(),
|
|
59
|
+
maxInputTokens: z.nullable(z.number().int()),
|
|
60
|
+
maxInputLength: z.number().int(),
|
|
61
61
|
}).transform((v) => {
|
|
62
62
|
return remap$(v, {
|
|
63
63
|
maxBatchSize: "max_batch_size",
|
|
@@ -39,7 +39,7 @@ export type EmbeddingsRequest = {
|
|
|
39
39
|
*/
|
|
40
40
|
model: string;
|
|
41
41
|
/**
|
|
42
|
-
* The number of dimensions the resulting output embeddings should have.
|
|
42
|
+
* The number of dimensions the resulting output embeddings should have. Ignored for a model with a fixed size, which always returns that size. For a model with a range it must lie within the range (`embedding_dimension_range` on `GET /models/{model_id}`), or the request fails with 400.
|
|
43
43
|
*/
|
|
44
44
|
dimensions?: number | undefined;
|
|
45
45
|
/**
|
|
@@ -88,7 +88,7 @@ export type VectorStore = {
|
|
|
88
88
|
*/
|
|
89
89
|
embeddingModel: string | null;
|
|
90
90
|
/**
|
|
91
|
-
* The number of dimensions for the embedding vectors in this vector store. Null for legacy vector stores.
|
|
91
|
+
* The number of dimensions for the embedding vectors in this vector store. Null for legacy vector stores. If the embedding model's declared dimensions stop including this size, or the model returns embeddings of another width, search fails with 412 and new files fail to ingest.
|
|
92
92
|
*/
|
|
93
93
|
embeddingDimensions: number | null;
|
|
94
94
|
/**
|
|
@@ -160,7 +160,7 @@ export type GetModelResponseBody = {
|
|
|
160
160
|
*/
|
|
161
161
|
outputModalities: Array<string>;
|
|
162
162
|
/**
|
|
163
|
-
* Context window in tokens, mirroring the registry's `contextWindow`. For an LLM it is the input plus output tokens one request can span: the Responses API trims the oldest conversation items to fit it, reserving nothing for the output, unless the request sets `truncation` to `disabled`, which rejects an oversized request instead; a separate request-size limit in bytes applies the same way. Chat completions forwards requests unchanged. For an embeddings model `/embeddings` derives
|
|
163
|
+
* Context window in tokens, mirroring the registry's `contextWindow`. For an LLM it is the input plus output tokens one request can span: the Responses API trims the oldest conversation items to fit it, reserving nothing for the output, unless the request sets `truncation` to `disabled`, which rejects an oversized request instead; a separate request-size limit in bytes applies the same way. Chat completions forwards requests unchanged. For an embeddings model `/embeddings` derives a per-input character cap from it, alongside a gateway-wide per-input ceiling; `GET /embeddings/models` reports whichever binds first as `max_input_length`. On other model types the gateway does not read it, so a recorded value is informational only and not enforced. Null when the registry does not record one.
|
|
164
164
|
*/
|
|
165
165
|
contextWindow: number | null;
|
|
166
166
|
/**
|
|
@@ -172,7 +172,7 @@ export type GetModelResponseBody = {
|
|
|
172
172
|
*/
|
|
173
173
|
minImageResolution: MinImageResolution | null;
|
|
174
174
|
/**
|
|
175
|
-
* Output vector sizes declared for this model, mirroring the registry's `embeddingLimits.dimensions`, which is normally recorded only on embeddings models.
|
|
175
|
+
* Output vector sizes declared for this model, mirroring the registry's `embeddingLimits.dimensions`, which is normally recorded only on embeddings models. When `min` equals `max` the size is fixed: `/embeddings` ignores a requested `dimensions` and returns that size, and vector stores accept only that size. Otherwise a requested size must lie within the range: `/embeddings` and vector stores reject one outside it with 400. Null when the registry does not record dimensions; a vector store using such a model must then be created with an explicit size (`embedding_dimensions` on `POST /vector_stores`). Distinct from the vector store's own `embedding_dimensions`, which is a single size.
|
|
176
176
|
*/
|
|
177
177
|
embeddingDimensionRange: EmbeddingDimensionRange | null;
|
|
178
178
|
/**
|