@xpert-ai/plugin-sdk 3.17.0 → 3.17.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @xpert-ai/plugin-sdk
2
2
 
3
+ ## 3.17.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 612baea: Resolve model parameter defaults consistently across configuration UIs and runtime model creation, and expose provider parameter rules through the plugin SDK.
8
+ - Updated dependencies [612baea]
9
+ - @xpert-ai/contracts@3.17.1
10
+
3
11
  ## 3.17.0
4
12
 
5
13
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/plugin-sdk",
3
- "version": "3.17.0",
3
+ "version": "3.17.1",
4
4
  "license": "AGPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@langchain/openai": "0.6.9",
20
- "@xpert-ai/contracts": "3.17.0",
20
+ "@xpert-ai/contracts": "3.17.1",
21
21
  "express": "^4.22.1",
22
22
  "js-tiktoken": "^1.0.21"
23
23
  },
@@ -1,5 +1,5 @@
1
1
  import { BaseChatModel } from '@langchain/core/language_models/chat_models';
2
- import { AIModelEntity, ICopilot, ICopilotModel, ILLMUsage, ModelUsagePricingSnapshot, ModelUsagePricingContext, ParameterType, PriceInfo, PriceType } from '@xpert-ai/contracts';
2
+ import { AIModelEntity, ICopilot, ICopilotModel, ILLMUsage, ModelUsagePricingContext, ModelUsagePricingSnapshot, ParameterRule, ParameterType, PriceInfo, PriceType } from '@xpert-ai/contracts';
3
3
  export type TModelUsageType = 'estimated';
4
4
  export type TLLMUsage = ILLMUsage & {
5
5
  type?: TModelUsageType;
@@ -22,6 +22,7 @@ export interface IAIModel {
22
22
  validateCredentials(model: string, credentials: Record<string, any>): Promise<void>;
23
23
  getChatModel(copilotModel: ICopilotModel, options?: TChatModelOptions): BaseChatModel;
24
24
  predefinedModels(): AIModelEntity[];
25
+ getParameterRules(model: string, credentials: Record<string, string>): ParameterRule[];
25
26
  getUsagePricingSnapshot(model: string, credentials: Record<string, any>, context: ModelUsagePricingContext): ModelUsagePricingSnapshot;
26
27
  getPrice(model: string, credentials: Record<string, any>, priceType: PriceType, tokens: number, inputTokens?: number): PriceInfo;
27
28
  }