@xpert-ai/plugin-openai 0.1.0 → 0.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/README.md +70 -0
- package/dist/index.js +2 -2
- package/dist/llm/_position.yaml +7 -5
- package/dist/llm/gpt-6-astra.yaml +99 -0
- package/dist/llm/gpt-6-luna.yaml +116 -0
- package/dist/llm/gpt-6-sol.yaml +116 -0
- package/dist/llm/gpt-6.1-sol.yaml +99 -0
- package/dist/llm/gpt-6.1-terra.yaml +116 -0
- package/dist/llm/gpt-6.2-astra.yaml +98 -0
- package/dist/llm/gpt-6.2-sol.yaml +98 -0
- package/dist/llm/llm.d.ts.map +1 -1
- package/dist/llm/llm.js +3 -6
- package/dist/llm/reasoning.d.ts +2 -0
- package/dist/llm/reasoning.d.ts.map +1 -1
- package/dist/llm/reasoning.js +29 -0
- package/dist/openai.yaml +2 -2
- package/dist/provider.strategy.d.ts.map +1 -1
- package/dist/provider.strategy.js +20 -12
- package/dist/types.d.ts +3 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +30 -3
- package/package.json +2 -2
- package/dist/llm/gpt-5.2-chat.yaml +0 -79
- package/dist/llm/gpt-5.2-codex.yaml +0 -94
- package/dist/llm/gpt-5.4-pro.yaml +0 -64
- package/dist/llm/gpt-5.4.yaml +0 -95
- package/dist/llm/gpt-5.yaml +0 -94
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
native_protocols:
|
|
2
|
-
- openai_responses
|
|
3
|
-
model: gpt-5.4-pro
|
|
4
|
-
label:
|
|
5
|
-
en_US: GPT-5.4 Pro
|
|
6
|
-
zh_Hans: GPT-5.4 Pro
|
|
7
|
-
model_type: llm
|
|
8
|
-
features:
|
|
9
|
-
- agent-thought
|
|
10
|
-
- tool-call
|
|
11
|
-
- multi-tool-call
|
|
12
|
-
- stream-tool-call
|
|
13
|
-
- vision
|
|
14
|
-
model_properties:
|
|
15
|
-
mode: chat
|
|
16
|
-
context_size: 400000
|
|
17
|
-
max_output: 128000
|
|
18
|
-
parameter_rules:
|
|
19
|
-
- name: max_tokens
|
|
20
|
-
use_template: max_tokens
|
|
21
|
-
default: 32768
|
|
22
|
-
min: 16
|
|
23
|
-
max: 128000
|
|
24
|
-
help:
|
|
25
|
-
zh_Hans: 最大输出 token 数量。
|
|
26
|
-
en_US: Maximum number of output tokens.
|
|
27
|
-
- name: reasoning_effort
|
|
28
|
-
label:
|
|
29
|
-
zh_Hans: 推理力度
|
|
30
|
-
en_US: Reasoning Effort
|
|
31
|
-
type: string
|
|
32
|
-
required: false
|
|
33
|
-
default: medium
|
|
34
|
-
options:
|
|
35
|
-
- medium
|
|
36
|
-
- high
|
|
37
|
-
- xhigh
|
|
38
|
-
help:
|
|
39
|
-
zh_Hans: 控制模型推理的深度。Pro 模型从 medium 起步,xhigh 适合最复杂的问题。
|
|
40
|
-
en_US: Controls how much reasoning effort the model uses. Pro models start at medium, while xhigh is best for the hardest problems.
|
|
41
|
-
- name: frequency_penalty
|
|
42
|
-
use_template: frequency_penalty
|
|
43
|
-
default: 0
|
|
44
|
-
min: -2.0
|
|
45
|
-
max: 2.0
|
|
46
|
-
help:
|
|
47
|
-
zh_Hans: 降低重复内容的出现频率。
|
|
48
|
-
en_US: Reduces repetition in the output.
|
|
49
|
-
- name: presence_penalty
|
|
50
|
-
label:
|
|
51
|
-
zh_Hans: 存在惩罚
|
|
52
|
-
en_US: Presence Penalty
|
|
53
|
-
type: float
|
|
54
|
-
default: 0
|
|
55
|
-
min: -2.0
|
|
56
|
-
max: 2.0
|
|
57
|
-
help:
|
|
58
|
-
zh_Hans: 提高讨论新话题的可能性。
|
|
59
|
-
en_US: Increases the likelihood of discussing new topics.
|
|
60
|
-
pricing:
|
|
61
|
-
input: '25'
|
|
62
|
-
output: '200'
|
|
63
|
-
unit: '0.000001'
|
|
64
|
-
currency: USD
|
package/dist/llm/gpt-5.4.yaml
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
native_protocols:
|
|
2
|
-
- openai_responses
|
|
3
|
-
model: gpt-5.4
|
|
4
|
-
label:
|
|
5
|
-
en_US: GPT-5.4
|
|
6
|
-
zh_Hans: GPT-5.4
|
|
7
|
-
model_type: llm
|
|
8
|
-
features:
|
|
9
|
-
- agent-thought
|
|
10
|
-
- tool-call
|
|
11
|
-
- multi-tool-call
|
|
12
|
-
- stream-tool-call
|
|
13
|
-
- structured-output
|
|
14
|
-
- vision
|
|
15
|
-
model_properties:
|
|
16
|
-
mode: chat
|
|
17
|
-
context_size: 400000
|
|
18
|
-
max_output: 128000
|
|
19
|
-
parameter_rules:
|
|
20
|
-
- name: temperature
|
|
21
|
-
use_template: temperature
|
|
22
|
-
default: 1
|
|
23
|
-
min: 0.0
|
|
24
|
-
max: 2.0
|
|
25
|
-
help:
|
|
26
|
-
zh_Hans: 采样温度,控制输出的随机性。
|
|
27
|
-
en_US: Sampling temperature, controls the randomness of the output.
|
|
28
|
-
- name: max_tokens
|
|
29
|
-
use_template: max_tokens
|
|
30
|
-
default: 32768
|
|
31
|
-
min: 16
|
|
32
|
-
max: 128000
|
|
33
|
-
help:
|
|
34
|
-
zh_Hans: 最大输出 token 数量。GPT-5.4 支持最大 128K 输出。
|
|
35
|
-
en_US: Maximum number of output tokens. GPT-5.4 supports up to 128K output.
|
|
36
|
-
- name: top_p
|
|
37
|
-
use_template: top_p
|
|
38
|
-
default: 1
|
|
39
|
-
min: 0.0
|
|
40
|
-
max: 1.0
|
|
41
|
-
help:
|
|
42
|
-
zh_Hans: 核采样参数,控制输出的多样性。
|
|
43
|
-
en_US: Nucleus sampling parameter, controls output diversity.
|
|
44
|
-
- name: reasoning_effort
|
|
45
|
-
label:
|
|
46
|
-
zh_Hans: 推理力度
|
|
47
|
-
en_US: Reasoning Effort
|
|
48
|
-
type: string
|
|
49
|
-
required: false
|
|
50
|
-
default: none
|
|
51
|
-
options:
|
|
52
|
-
- none
|
|
53
|
-
- low
|
|
54
|
-
- medium
|
|
55
|
-
- high
|
|
56
|
-
- xhigh
|
|
57
|
-
help:
|
|
58
|
-
zh_Hans: 控制模型推理的深度。none 为默认值,xhigh 提供最深推理但通常延迟更高。
|
|
59
|
-
en_US: Controls how much reasoning effort the model uses. none is the default, while xhigh provides the deepest reasoning at higher latency.
|
|
60
|
-
- name: frequency_penalty
|
|
61
|
-
use_template: frequency_penalty
|
|
62
|
-
default: 0
|
|
63
|
-
min: -2.0
|
|
64
|
-
max: 2.0
|
|
65
|
-
help:
|
|
66
|
-
zh_Hans: 降低重复内容的出现频率。
|
|
67
|
-
en_US: Reduces repetition in the output.
|
|
68
|
-
- name: presence_penalty
|
|
69
|
-
label:
|
|
70
|
-
zh_Hans: 存在惩罚
|
|
71
|
-
en_US: Presence Penalty
|
|
72
|
-
type: float
|
|
73
|
-
default: 0
|
|
74
|
-
min: -2.0
|
|
75
|
-
max: 2.0
|
|
76
|
-
help:
|
|
77
|
-
zh_Hans: 提高讨论新话题的可能性。
|
|
78
|
-
en_US: Increases the likelihood of discussing new topics.
|
|
79
|
-
- name: response_format
|
|
80
|
-
label:
|
|
81
|
-
zh_Hans: 回复格式
|
|
82
|
-
en_US: Response Format
|
|
83
|
-
type: string
|
|
84
|
-
help:
|
|
85
|
-
zh_Hans: 指定模型必须输出的格式。
|
|
86
|
-
en_US: Specifying the format that the model must output.
|
|
87
|
-
required: false
|
|
88
|
-
options:
|
|
89
|
-
- text
|
|
90
|
-
- json_object
|
|
91
|
-
pricing:
|
|
92
|
-
input: '2'
|
|
93
|
-
output: '16'
|
|
94
|
-
unit: '0.000001'
|
|
95
|
-
currency: USD
|
package/dist/llm/gpt-5.yaml
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
native_protocols:
|
|
2
|
-
- openai_responses
|
|
3
|
-
model: gpt-5
|
|
4
|
-
label:
|
|
5
|
-
en_US: GPT-5
|
|
6
|
-
zh_Hans: GPT-5
|
|
7
|
-
model_type: llm
|
|
8
|
-
features:
|
|
9
|
-
- agent-thought
|
|
10
|
-
- tool-call
|
|
11
|
-
- multi-tool-call
|
|
12
|
-
- stream-tool-call
|
|
13
|
-
- structured-output
|
|
14
|
-
- vision
|
|
15
|
-
model_properties:
|
|
16
|
-
mode: chat
|
|
17
|
-
context_size: 400000
|
|
18
|
-
max_output: 128000
|
|
19
|
-
parameter_rules:
|
|
20
|
-
- name: temperature
|
|
21
|
-
use_template: temperature
|
|
22
|
-
default: 1
|
|
23
|
-
min: 0.0
|
|
24
|
-
max: 2.0
|
|
25
|
-
help:
|
|
26
|
-
zh_Hans: 采样温度,控制输出的随机性。
|
|
27
|
-
en_US: Sampling temperature, controls the randomness of the output.
|
|
28
|
-
- name: max_tokens
|
|
29
|
-
use_template: max_tokens
|
|
30
|
-
default: 32768
|
|
31
|
-
min: 16
|
|
32
|
-
max: 128000
|
|
33
|
-
help:
|
|
34
|
-
zh_Hans: 最大输出 token 数量。GPT-5 支持最大 128K 输出。
|
|
35
|
-
en_US: Maximum number of output tokens. GPT-5 supports up to 128K output.
|
|
36
|
-
- name: top_p
|
|
37
|
-
use_template: top_p
|
|
38
|
-
default: 1
|
|
39
|
-
min: 0.0
|
|
40
|
-
max: 1.0
|
|
41
|
-
help:
|
|
42
|
-
zh_Hans: 核采样参数,控制输出的多样性。
|
|
43
|
-
en_US: Nucleus sampling parameter, controls output diversity.
|
|
44
|
-
- name: reasoning_effort
|
|
45
|
-
label:
|
|
46
|
-
zh_Hans: 推理力度
|
|
47
|
-
en_US: Reasoning Effort
|
|
48
|
-
type: string
|
|
49
|
-
required: false
|
|
50
|
-
default: medium
|
|
51
|
-
options:
|
|
52
|
-
- minimal
|
|
53
|
-
- low
|
|
54
|
-
- medium
|
|
55
|
-
- high
|
|
56
|
-
help:
|
|
57
|
-
zh_Hans: 控制模型推理的深度。high 提供最深度的推理,minimal 适合更快的响应。
|
|
58
|
-
en_US: Controls how much reasoning effort the model uses. high provides the deepest reasoning, while minimal favors faster responses.
|
|
59
|
-
- name: frequency_penalty
|
|
60
|
-
use_template: frequency_penalty
|
|
61
|
-
default: 0
|
|
62
|
-
min: -2.0
|
|
63
|
-
max: 2.0
|
|
64
|
-
help:
|
|
65
|
-
zh_Hans: 降低重复内容的出现频率。
|
|
66
|
-
en_US: Reduces repetition in the output.
|
|
67
|
-
- name: presence_penalty
|
|
68
|
-
label:
|
|
69
|
-
zh_Hans: 存在惩罚
|
|
70
|
-
en_US: Presence Penalty
|
|
71
|
-
type: float
|
|
72
|
-
default: 0
|
|
73
|
-
min: -2.0
|
|
74
|
-
max: 2.0
|
|
75
|
-
help:
|
|
76
|
-
zh_Hans: 提高讨论新话题的可能性。
|
|
77
|
-
en_US: Increases the likelihood of discussing new topics.
|
|
78
|
-
- name: response_format
|
|
79
|
-
label:
|
|
80
|
-
zh_Hans: 回复格式
|
|
81
|
-
en_US: Response Format
|
|
82
|
-
type: string
|
|
83
|
-
help:
|
|
84
|
-
zh_Hans: 指定模型必须输出的格式。
|
|
85
|
-
en_US: Specifying the format that the model must output.
|
|
86
|
-
required: false
|
|
87
|
-
options:
|
|
88
|
-
- text
|
|
89
|
-
- json_object
|
|
90
|
-
pricing:
|
|
91
|
-
input: '1.25'
|
|
92
|
-
output: '10'
|
|
93
|
-
unit: '0.000001'
|
|
94
|
-
currency: USD
|