claude-codex-proxy 1.0.5-beta.36 → 1.0.5-beta.38
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/model-pricing.js +47 -0
- package/src/routes/models-route.js +4 -0
package/package.json
CHANGED
package/src/model-pricing.js
CHANGED
|
@@ -9,6 +9,24 @@ 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-sol': {
|
|
13
|
+
input: 2,
|
|
14
|
+
cachedInput: 0.2,
|
|
15
|
+
cacheWrite: 2.5,
|
|
16
|
+
output: 10
|
|
17
|
+
},
|
|
18
|
+
'gpt-6-luna': {
|
|
19
|
+
input: 0.1,
|
|
20
|
+
cachedInput: 0.01,
|
|
21
|
+
cacheWrite: 0.125,
|
|
22
|
+
output: 0.5
|
|
23
|
+
},
|
|
24
|
+
'gpt-6-astra': {
|
|
25
|
+
input: 10,
|
|
26
|
+
cachedInput: 1,
|
|
27
|
+
cacheWrite: 12.5,
|
|
28
|
+
output: 50
|
|
29
|
+
},
|
|
12
30
|
'gpt-5.6-sol': {
|
|
13
31
|
input: 5,
|
|
14
32
|
cachedInput: 0.5,
|
|
@@ -21,6 +39,12 @@ const STANDARD_PRICING = {
|
|
|
21
39
|
cacheWrite: 2.5,
|
|
22
40
|
output: 12
|
|
23
41
|
},
|
|
42
|
+
'gpt-5.6-luna': {
|
|
43
|
+
input: 0.2,
|
|
44
|
+
cachedInput: 0.02,
|
|
45
|
+
cacheWrite: 0.25,
|
|
46
|
+
output: 1.2
|
|
47
|
+
},
|
|
24
48
|
'gpt-5.4-mini': {
|
|
25
49
|
input: 0.75,
|
|
26
50
|
cachedInput: 0.075,
|
|
@@ -30,6 +54,24 @@ const STANDARD_PRICING = {
|
|
|
30
54
|
};
|
|
31
55
|
|
|
32
56
|
const LONG_CONTEXT_PRICING = {
|
|
57
|
+
'gpt-6-sol': {
|
|
58
|
+
input: 4,
|
|
59
|
+
cachedInput: 0.4,
|
|
60
|
+
cacheWrite: 5,
|
|
61
|
+
output: 15
|
|
62
|
+
},
|
|
63
|
+
'gpt-6-luna': {
|
|
64
|
+
input: 0.2,
|
|
65
|
+
cachedInput: 0.02,
|
|
66
|
+
cacheWrite: 0.25,
|
|
67
|
+
output: 0.75
|
|
68
|
+
},
|
|
69
|
+
'gpt-6-astra': {
|
|
70
|
+
input: 20,
|
|
71
|
+
cachedInput: 2,
|
|
72
|
+
cacheWrite: 25,
|
|
73
|
+
output: 75
|
|
74
|
+
},
|
|
33
75
|
'gpt-5.6-sol': {
|
|
34
76
|
input: 10,
|
|
35
77
|
cachedInput: 1,
|
|
@@ -41,6 +83,11 @@ const LONG_CONTEXT_PRICING = {
|
|
|
41
83
|
cachedInput: 0.4,
|
|
42
84
|
cacheWrite: 5,
|
|
43
85
|
output: 18
|
|
86
|
+
},
|
|
87
|
+
'gpt-5.6-luna': {
|
|
88
|
+
input: 0.4,
|
|
89
|
+
cacheWrite: 0.5,
|
|
90
|
+
output: 1.8
|
|
44
91
|
}
|
|
45
92
|
};
|
|
46
93
|
|
|
@@ -13,6 +13,10 @@ import { getCredentialsOrError } from '../middleware/credentials.js';
|
|
|
13
13
|
|
|
14
14
|
export const FALLBACK_MODELS = [
|
|
15
15
|
// OpenAI upstream models
|
|
16
|
+
{ id: 'gpt-6-astra', object: 'model', owned_by: 'openai' },
|
|
17
|
+
{ id: 'gpt-6-sol', object: 'model', owned_by: 'openai' },
|
|
18
|
+
{ id: 'gpt-6-luna', object: 'model', owned_by: 'openai' },
|
|
19
|
+
{ id: 'gpt-5.6-luna', object: 'model', owned_by: 'openai' },
|
|
16
20
|
{ id: 'gpt-5.3-codex', object: 'model', owned_by: 'openai' },
|
|
17
21
|
{ id: 'gpt-5.2-codex', object: 'model', owned_by: 'openai' },
|
|
18
22
|
{ id: 'gpt-5.1-codex', object: 'model', owned_by: 'openai' },
|