@xpert-ai/plugin-openai 0.0.4 → 0.1.0
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/llm/gpt-5.2-chat.yaml +3 -1
- package/dist/llm/gpt-5.2-codex.yaml +3 -1
- package/dist/llm/gpt-5.2-pro.yaml +3 -1
- package/dist/llm/gpt-5.2.yaml +3 -1
- package/dist/llm/gpt-5.3-codex.yaml +3 -1
- package/dist/llm/gpt-5.4-pro.yaml +3 -1
- package/dist/llm/gpt-5.4.yaml +3 -1
- package/dist/llm/gpt-5.yaml +3 -1
- package/dist/llm/llm.d.ts +1 -1
- package/dist/llm/llm.d.ts.map +1 -1
- package/dist/llm/llm.js +4 -4
- package/dist/provider.strategy.d.ts +2 -0
- package/dist/provider.strategy.d.ts.map +1 -1
- package/dist/provider.strategy.js +13 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +10 -0
- package/package.json +3 -3
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
native_protocols:
|
|
2
|
+
- openai_responses
|
|
1
3
|
model: gpt-5.2-chat
|
|
2
4
|
label:
|
|
3
5
|
en_US: GPT-5.2 Chat
|
|
@@ -26,7 +28,7 @@ parameter_rules:
|
|
|
26
28
|
- name: max_tokens
|
|
27
29
|
use_template: max_tokens
|
|
28
30
|
default: 4096
|
|
29
|
-
min:
|
|
31
|
+
min: 16
|
|
30
32
|
max: 16384
|
|
31
33
|
help:
|
|
32
34
|
zh_Hans: 最大输出 token 数量。
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
native_protocols:
|
|
2
|
+
- openai_responses
|
|
1
3
|
model: gpt-5.2-codex
|
|
2
4
|
label:
|
|
3
5
|
en_US: GPT-5.2 Codex
|
|
@@ -26,7 +28,7 @@ parameter_rules:
|
|
|
26
28
|
- name: max_tokens
|
|
27
29
|
use_template: max_tokens
|
|
28
30
|
default: 32768
|
|
29
|
-
min:
|
|
31
|
+
min: 16
|
|
30
32
|
max: 128000
|
|
31
33
|
help:
|
|
32
34
|
zh_Hans: 最大输出 token 数量。
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
native_protocols:
|
|
2
|
+
- openai_responses
|
|
1
3
|
model: gpt-5.2-pro
|
|
2
4
|
label:
|
|
3
5
|
en_US: GPT-5.2 Pro
|
|
@@ -17,7 +19,7 @@ parameter_rules:
|
|
|
17
19
|
- name: max_tokens
|
|
18
20
|
use_template: max_tokens
|
|
19
21
|
default: 32768
|
|
20
|
-
min:
|
|
22
|
+
min: 16
|
|
21
23
|
max: 128000
|
|
22
24
|
help:
|
|
23
25
|
zh_Hans: 最大输出 token 数量。
|
package/dist/llm/gpt-5.2.yaml
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
native_protocols:
|
|
2
|
+
- openai_responses
|
|
1
3
|
model: gpt-5.2
|
|
2
4
|
label:
|
|
3
5
|
en_US: GPT-5.2
|
|
@@ -26,7 +28,7 @@ parameter_rules:
|
|
|
26
28
|
- name: max_tokens
|
|
27
29
|
use_template: max_tokens
|
|
28
30
|
default: 32768
|
|
29
|
-
min:
|
|
31
|
+
min: 16
|
|
30
32
|
max: 128000
|
|
31
33
|
help:
|
|
32
34
|
zh_Hans: 最大输出 token 数量。GPT-5.2 支持最大 128K 输出。
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
native_protocols:
|
|
2
|
+
- openai_responses
|
|
1
3
|
model: gpt-5.3-codex
|
|
2
4
|
label:
|
|
3
5
|
en_US: GPT-5.3 Codex
|
|
@@ -26,7 +28,7 @@ parameter_rules:
|
|
|
26
28
|
- name: max_tokens
|
|
27
29
|
use_template: max_tokens
|
|
28
30
|
default: 16384
|
|
29
|
-
min:
|
|
31
|
+
min: 16
|
|
30
32
|
max: 65536
|
|
31
33
|
help:
|
|
32
34
|
zh_Hans: 最大输出 token 数量。
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
native_protocols:
|
|
2
|
+
- openai_responses
|
|
1
3
|
model: gpt-5.4-pro
|
|
2
4
|
label:
|
|
3
5
|
en_US: GPT-5.4 Pro
|
|
@@ -17,7 +19,7 @@ parameter_rules:
|
|
|
17
19
|
- name: max_tokens
|
|
18
20
|
use_template: max_tokens
|
|
19
21
|
default: 32768
|
|
20
|
-
min:
|
|
22
|
+
min: 16
|
|
21
23
|
max: 128000
|
|
22
24
|
help:
|
|
23
25
|
zh_Hans: 最大输出 token 数量。
|
package/dist/llm/gpt-5.4.yaml
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
native_protocols:
|
|
2
|
+
- openai_responses
|
|
1
3
|
model: gpt-5.4
|
|
2
4
|
label:
|
|
3
5
|
en_US: GPT-5.4
|
|
@@ -26,7 +28,7 @@ parameter_rules:
|
|
|
26
28
|
- name: max_tokens
|
|
27
29
|
use_template: max_tokens
|
|
28
30
|
default: 32768
|
|
29
|
-
min:
|
|
31
|
+
min: 16
|
|
30
32
|
max: 128000
|
|
31
33
|
help:
|
|
32
34
|
zh_Hans: 最大输出 token 数量。GPT-5.4 支持最大 128K 输出。
|
package/dist/llm/gpt-5.yaml
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
native_protocols:
|
|
2
|
+
- openai_responses
|
|
1
3
|
model: gpt-5
|
|
2
4
|
label:
|
|
3
5
|
en_US: GPT-5
|
|
@@ -26,7 +28,7 @@ parameter_rules:
|
|
|
26
28
|
- name: max_tokens
|
|
27
29
|
use_template: max_tokens
|
|
28
30
|
default: 32768
|
|
29
|
-
min:
|
|
31
|
+
min: 16
|
|
30
32
|
max: 128000
|
|
31
33
|
help:
|
|
32
34
|
zh_Hans: 最大输出 token 数量。GPT-5 支持最大 128K 输出。
|
package/dist/llm/llm.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChatOpenAI } from '@langchain/openai';
|
|
2
|
-
import { ICopilotModel } from '@
|
|
2
|
+
import { ICopilotModel } from '@xpert-ai/contracts';
|
|
3
3
|
import { LargeLanguageModel, TChatModelOptions } from '@xpert-ai/plugin-sdk';
|
|
4
4
|
import { OpenAICredentials } from '../types.js';
|
|
5
5
|
import { OpenAIProviderStrategy } from '../provider.strategy.js';
|
package/dist/llm/llm.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm.d.ts","sourceRoot":"","sources":["../../src/llm/llm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAgB,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EAAmB,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"llm.d.ts","sourceRoot":"","sources":["../../src/llm/llm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAgB,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EAAmB,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAEpE,OAAO,EAGL,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAIL,iBAAiB,EAMlB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAOhE,qBACa,wBAAyB,SAAQ,kBAAkB;;aAGhC,aAAa,EAAE,sBAAsB;gBAArC,aAAa,EAAE,sBAAsB;IAI7D,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBvF,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,oBAAoB;IAInB,YAAY,CAAC,YAAY,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,iBAAiB;CA+D/E"}
|
package/dist/llm/llm.js
CHANGED
|
@@ -3,11 +3,11 @@ var OpenAILargeLanguageModel_1;
|
|
|
3
3
|
import { __decorate, __metadata } from "tslib";
|
|
4
4
|
import { HumanMessage } from '@langchain/core/messages';
|
|
5
5
|
import { ChatOpenAI } from '@langchain/openai';
|
|
6
|
-
import { AiModelTypeEnum } from '@
|
|
6
|
+
import { AiModelTypeEnum } from '@xpert-ai/contracts';
|
|
7
7
|
import { Injectable, Logger } from '@nestjs/common';
|
|
8
8
|
import { CredentialsValidateFailedError, getErrorMessage, LargeLanguageModel, } from '@xpert-ai/plugin-sdk';
|
|
9
9
|
import { isNil, omitBy } from 'lodash-es';
|
|
10
|
-
import { getSupportedOpenAIReasoningEfforts, normalizeOpenAIReasoningEffort, shouldEnableResponseFormat, shouldEnableSamplingParameters, toCredentialKwargs } from '../types.js';
|
|
10
|
+
import { getSupportedOpenAIReasoningEfforts, normalizeOpenAIMaxTokens, normalizeOpenAIReasoningEffort, OpenAIResponsesMinOutputTokens, shouldEnableResponseFormat, shouldEnableSamplingParameters, toCredentialKwargs } from '../types.js';
|
|
11
11
|
import { OpenAIProviderStrategy } from '../provider.strategy.js';
|
|
12
12
|
import { OpenAIReasoningResponsesModel } from './reasoning.js';
|
|
13
13
|
let OpenAILargeLanguageModel = OpenAILargeLanguageModel_1 = class OpenAILargeLanguageModel extends LargeLanguageModel {
|
|
@@ -22,7 +22,7 @@ let OpenAILargeLanguageModel = OpenAILargeLanguageModel_1 = class OpenAILargeLan
|
|
|
22
22
|
const chatModel = new ChatOpenAI({
|
|
23
23
|
...params,
|
|
24
24
|
model,
|
|
25
|
-
maxTokens:
|
|
25
|
+
maxTokens: OpenAIResponsesMinOutputTokens,
|
|
26
26
|
useResponsesApi: true,
|
|
27
27
|
});
|
|
28
28
|
const messages = [new HumanMessage('Hello')];
|
|
@@ -67,7 +67,7 @@ let OpenAILargeLanguageModel = OpenAILargeLanguageModel_1 = class OpenAILargeLan
|
|
|
67
67
|
model,
|
|
68
68
|
streaming,
|
|
69
69
|
temperature: supportsSamplingParams ? (modelOptions?.temperature ?? 1) : undefined,
|
|
70
|
-
maxTokens: modelOptions?.max_tokens,
|
|
70
|
+
maxTokens: normalizeOpenAIMaxTokens(modelOptions?.max_tokens, params.configuration?.baseURL),
|
|
71
71
|
topP: supportsSamplingParams ? modelOptions?.top_p : undefined,
|
|
72
72
|
frequencyPenalty: modelOptions?.frequency_penalty,
|
|
73
73
|
presencePenalty: modelOptions?.presence_penalty,
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { type NativeModelClientFactory } from '@xpert-ai/plugin-sdk';
|
|
1
2
|
import { Logger } from '@nestjs/common';
|
|
2
3
|
import { ModelProvider } from '@xpert-ai/plugin-sdk';
|
|
3
4
|
import { OpenAICredentials } from './types.js';
|
|
4
5
|
export declare class OpenAIProviderStrategy extends ModelProvider {
|
|
5
6
|
logger: Logger;
|
|
7
|
+
readonly getNativeModelClient: NativeModelClientFactory;
|
|
6
8
|
getBaseUrl(credentials: OpenAICredentials): string;
|
|
7
9
|
getAuthorization(credentials: OpenAICredentials): string;
|
|
8
10
|
validateProviderCredentials(credentials: OpenAICredentials): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.strategy.d.ts","sourceRoot":"","sources":["../src/provider.strategy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"provider.strategy.d.ts","sourceRoot":"","sources":["../src/provider.strategy.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,KAAK,wBAAwB,EAAsB,MAAM,sBAAsB,CAAA;AAC9G,OAAO,EAAc,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,EAGL,aAAa,EACd,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAEL,iBAAiB,EAElB,MAAM,YAAY,CAAA;AAyBnB,qBAEa,sBAAuB,SAAQ,aAAa;IAC9C,MAAM,SAA0C;IAEzD,QAAQ,CAAC,oBAAoB,EAAE,wBAAwB,CAStD;IAED,UAAU,CAAC,WAAW,EAAE,iBAAiB,GAAG,MAAM;IAKlD,gBAAgB,CAAC,WAAW,EAAE,iBAAiB,GAAG,MAAM;IAIlD,2BAA2B,CAAC,WAAW,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;CAoCjF"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
var OpenAIProviderStrategy_1;
|
|
2
2
|
import { __decorate } from "tslib";
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { nativeModelTransport } from '@xpert-ai/plugin-sdk';
|
|
3
5
|
import { Injectable, Logger } from '@nestjs/common';
|
|
4
6
|
import { AIModelProviderStrategy, CredentialsValidateFailedError, ModelProvider, } from '@xpert-ai/plugin-sdk';
|
|
5
|
-
import { AiModelTypeEnum } from '@
|
|
7
|
+
import { AiModelTypeEnum } from '@xpert-ai/contracts';
|
|
6
8
|
import { OpenAIProvider, toCredentialKwargs, } from './types.js';
|
|
7
9
|
const OpenAIValidationModels = ['gpt-5.4', 'gpt-5', 'gpt-5.2'];
|
|
8
10
|
const OpenAIValidationFallbackPatterns = [
|
|
@@ -27,6 +29,16 @@ let OpenAIProviderStrategy = OpenAIProviderStrategy_1 = class OpenAIProviderStra
|
|
|
27
29
|
constructor() {
|
|
28
30
|
super(...arguments);
|
|
29
31
|
this.logger = new Logger(OpenAIProviderStrategy_1.name);
|
|
32
|
+
this.getNativeModelClient = async (protocol, model) => {
|
|
33
|
+
if (protocol !== 'openai_responses' || !this.getProviderModels(AiModelTypeEnum.LLM)
|
|
34
|
+
.some((entry) => entry.model === model.model && entry.native_protocols?.includes(protocol)))
|
|
35
|
+
throw new Error('Native model protocol is unavailable');
|
|
36
|
+
const parsed = z.object({ api_key: z.string().min(1), endpoint_url: z.string().optional() }).passthrough().parse(model.copilot?.modelProvider?.credentials);
|
|
37
|
+
const credentials = { api_key: parsed.api_key, endpoint_url: parsed.endpoint_url };
|
|
38
|
+
const manager = this.getModelManager(AiModelTypeEnum.LLM);
|
|
39
|
+
return { protocol, generate: nativeModelTransport({ protocol, baseUrl: this.getBaseUrl(credentials), authorization: this.getAuthorization(credentials) }),
|
|
40
|
+
priceUsage: (usage, context) => manager.priceActualTokenUsage(model.model, usage, context) };
|
|
41
|
+
};
|
|
30
42
|
}
|
|
31
43
|
getBaseUrl(credentials) {
|
|
32
44
|
const params = toCredentialKwargs(credentials);
|
package/dist/types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ClientOptions } from '@langchain/openai';
|
|
|
2
2
|
import { CommonChatModelParameters } from '@xpert-ai/plugin-sdk';
|
|
3
3
|
export declare const OpenAIProvider = "openai";
|
|
4
4
|
export declare const OpenAIDefaultBaseUrl = "https://api.openai.com/v1";
|
|
5
|
+
export declare const OpenAIResponsesMinOutputTokens = 16;
|
|
5
6
|
export declare const SvgIcon: string;
|
|
6
7
|
export interface OpenAICredentials {
|
|
7
8
|
api_key: string;
|
|
@@ -25,6 +26,7 @@ export declare function getSupportedOpenAIReasoningEfforts(model?: string): read
|
|
|
25
26
|
export declare function normalizeOpenAIReasoningEffort(model?: string, effort?: OpenAIReasoningEffort): OpenAIReasoningEffort | undefined;
|
|
26
27
|
export declare function shouldEnableSamplingParameters(mode: OpenAICredentials['sampling_parameters'], baseURL?: string, model?: string): boolean;
|
|
27
28
|
export declare function shouldEnableResponseFormat(baseURL?: string, model?: string): boolean;
|
|
29
|
+
export declare function normalizeOpenAIMaxTokens(maxTokens?: number, baseURL?: string): number | undefined;
|
|
28
30
|
export declare function toCredentialKwargs(credentials: OpenAICredentials): {
|
|
29
31
|
configuration: ClientOptions;
|
|
30
32
|
temperature: number;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAmB,MAAM,mBAAmB,CAAA;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAOhE,eAAO,MAAM,cAAc,WAAW,CAAA;AACtC,eAAO,MAAM,oBAAoB,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAmB,MAAM,mBAAmB,CAAA;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAOhE,eAAO,MAAM,cAAc,WAAW,CAAA;AACtC,eAAO,MAAM,oBAAoB,8BAA8B,CAAA;AAC/D,eAAO,MAAM,8BAA8B,KAAK,CAAA;AAIhD,eAAO,MAAM,OAAO,QAAiE,CAAA;AAErF,MAAM,WAAW,iBAAiB;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAA;CACrD;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,SAAS,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;AA8B5F,MAAM,WAAW,kBAAmB,SAAQ,yBAAyB;IACpE,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gBAAgB,CAAC,EAAE,qBAAqB,CAAA;IACxC,eAAe,CAAC,EAAE,MAAM,GAAG,aAAa,CAAA;CACxC;AAID,wBAAgB,sBAAsB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAuBnE;AAED,wBAAgB,uBAAuB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAWjE;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED,wBAAgB,kCAAkC,CACjD,KAAK,CAAC,EAAE,MAAM,GACZ,SAAS,qBAAqB,EAAE,GAAG,SAAS,CAM9C;AAED,wBAAgB,8BAA8B,CAC7C,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,qBAAqB,GAC5B,qBAAqB,GAAG,SAAS,CA2BnC;AAED,wBAAgB,8BAA8B,CAC7C,IAAI,EAAE,iBAAiB,CAAC,qBAAqB,CAAC,EAC9C,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,CAAC,EAAE,MAAM,GACZ,OAAO,CAcT;AAED,wBAAgB,0BAA0B,CACzC,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,CAAC,EAAE,MAAM,GACZ,OAAO,CAMT;AAED,wBAAgB,wBAAwB,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAUjG;AAED,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;EAYhE"}
|
package/dist/types.js
CHANGED
|
@@ -4,6 +4,7 @@ import { dirname, join } from 'path';
|
|
|
4
4
|
const moduleDir = dirname(fileURLToPath(import.meta.url));
|
|
5
5
|
export const OpenAIProvider = 'openai';
|
|
6
6
|
export const OpenAIDefaultBaseUrl = 'https://api.openai.com/v1';
|
|
7
|
+
export const OpenAIResponsesMinOutputTokens = 16;
|
|
7
8
|
const OpenAIApiVersionPath = '/v1';
|
|
8
9
|
const OpenAIOfficialHost = 'api.openai.com';
|
|
9
10
|
export const SvgIcon = readFileSync(join(moduleDir, '_assets/icon_s_en.svg'), 'utf8');
|
|
@@ -118,6 +119,15 @@ export function shouldEnableResponseFormat(baseURL, model) {
|
|
|
118
119
|
}
|
|
119
120
|
return !isOpenAIGPT5ProModel(model);
|
|
120
121
|
}
|
|
122
|
+
export function normalizeOpenAIMaxTokens(maxTokens, baseURL) {
|
|
123
|
+
if (maxTokens == null) {
|
|
124
|
+
return undefined;
|
|
125
|
+
}
|
|
126
|
+
if (!isOpenAIOfficialBaseUrl(baseURL)) {
|
|
127
|
+
return maxTokens;
|
|
128
|
+
}
|
|
129
|
+
return Math.max(maxTokens, OpenAIResponsesMinOutputTokens);
|
|
130
|
+
}
|
|
121
131
|
export function toCredentialKwargs(credentials) {
|
|
122
132
|
const credentialsKwargs = {
|
|
123
133
|
apiKey: credentials.api_key,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xpert-ai/plugin-openai",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "OpenAI GPT-5 model plugin for XpertAI platform using Responses API",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "XpertAI",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"tslib": "^2.3.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@xpert-ai/plugin-sdk": "^3.
|
|
38
|
+
"@xpert-ai/plugin-sdk": "^3.20.0",
|
|
39
39
|
"@nestjs/config": "^4.0.2",
|
|
40
40
|
"chalk": "4.1.2",
|
|
41
41
|
"zod": "3.25.67",
|
|
42
|
-
"@
|
|
42
|
+
"@xpert-ai/contracts": "^3.20.0",
|
|
43
43
|
"@nestjs/common": "^11.1.6",
|
|
44
44
|
"@langchain/core": "^0.3.72",
|
|
45
45
|
"@langchain/openai": "0.6.9",
|