claude-codex-proxy 1.0.5-beta.42 → 1.0.5-beta.43
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/package.json +1 -1
- package/src/format-converter.js +2 -0
- package/src/model-pricing.js +24 -0
package/package.json
CHANGED
package/src/format-converter.js
CHANGED
|
@@ -355,6 +355,8 @@ function convertAnthropicToolsToOpenAI(tools) {
|
|
|
355
355
|
type: 'function',
|
|
356
356
|
name: tool.name,
|
|
357
357
|
description: tool.description || '',
|
|
358
|
+
// Preserve optional arguments instead of letting Responses normalize them as required.
|
|
359
|
+
strict: false,
|
|
358
360
|
parameters: sanitizeSchema(tool.input_schema || { type: 'object' })
|
|
359
361
|
};
|
|
360
362
|
});
|
package/src/model-pricing.js
CHANGED
|
@@ -9,6 +9,18 @@ export const LONG_CONTEXT_THRESHOLD_TOKENS = 272_000;
|
|
|
9
9
|
export const DEFAULT_PRICING_MODEL = 'gpt-5.6-sol';
|
|
10
10
|
|
|
11
11
|
const STANDARD_PRICING = {
|
|
12
|
+
'gpt-6.2-sol': {
|
|
13
|
+
input: 2,
|
|
14
|
+
cachedInput: 0.1,
|
|
15
|
+
cacheWrite: 2.5,
|
|
16
|
+
output: 10
|
|
17
|
+
},
|
|
18
|
+
'gpt-6.2-astra': {
|
|
19
|
+
input: 8,
|
|
20
|
+
cachedInput: 0.4,
|
|
21
|
+
cacheWrite: 10,
|
|
22
|
+
output: 40
|
|
23
|
+
},
|
|
12
24
|
'gpt-6.1-terra': {
|
|
13
25
|
input: 1,
|
|
14
26
|
cachedInput: 0.05,
|
|
@@ -66,6 +78,18 @@ const STANDARD_PRICING = {
|
|
|
66
78
|
};
|
|
67
79
|
|
|
68
80
|
const LONG_CONTEXT_PRICING = {
|
|
81
|
+
'gpt-6.2-sol': {
|
|
82
|
+
input: 4,
|
|
83
|
+
cachedInput: 0.2,
|
|
84
|
+
cacheWrite: 5,
|
|
85
|
+
output: 15
|
|
86
|
+
},
|
|
87
|
+
'gpt-6.2-astra': {
|
|
88
|
+
input: 16,
|
|
89
|
+
cachedInput: 0.8,
|
|
90
|
+
cacheWrite: 20,
|
|
91
|
+
output: 60
|
|
92
|
+
},
|
|
69
93
|
'gpt-6.1-terra': {
|
|
70
94
|
input: 2,
|
|
71
95
|
cachedInput: 0.1,
|