xingshang3084 commited on
Commit
33622ed
·
verified ·
1 Parent(s): 5cecf86

Upgrade Sub2API to v0.2.23 with checksum-pinned official release

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -4
  2. model_prices_and_context_window.json +108 -0
Dockerfile CHANGED
@@ -2,14 +2,14 @@ FROM postgres:17-alpine AS sub2api-release
2
 
3
  RUN apk add --no-cache ca-certificates curl
4
  WORKDIR /release
5
- ARG SUB2API_RELEASE_URL=https://github.com/Wei-Shaw/sub2api/releases/download/v0.2.22/sub2api_0.2.22_linux_amd64.tar.gz
6
  RUN set -eux; \
7
  curl --fail --location --retry 4 --retry-all-errors --connect-timeout 20 --max-time 600 \
8
  "$SUB2API_RELEASE_URL" \
9
  --output release.tar.gz; \
10
- printf '%s %s\n' 'ebd3c113d7f4681e690d48f8e4b5a8e7dad2c023fb07975f7da71136eabdfe3f' 'release.tar.gz' | sha256sum -c -; \
11
  tar -xzf release.tar.gz sub2api; \
12
- printf '%s %s\n' '7a3a7b6e877a8713a91dfbafbf7686d21e213391cf5c1c75b57565364d1bed5e' 'sub2api' | sha256sum -c -; \
13
  chmod 755 sub2api
14
 
15
  FROM postgres:17-alpine
@@ -40,7 +40,7 @@ RUN set -eux; \
40
 
41
  COPY --from=sub2api-release /release/sub2api /app/server
42
  COPY model_prices_and_context_window.json /app/resources/model-pricing/model_prices_and_context_window.json
43
- RUN printf '%s %s\n' 'da701399b30106882b5b9b0f1f86cd0a82e5f4e84259f5f31af2da892aeb1b74' \
44
  '/app/resources/model-pricing/model_prices_and_context_window.json' | sha256sum -c -
45
 
46
  COPY start.sh /app/start.sh
 
2
 
3
  RUN apk add --no-cache ca-certificates curl
4
  WORKDIR /release
5
+ ARG SUB2API_RELEASE_URL=https://github.com/Wei-Shaw/sub2api/releases/download/v0.2.23/sub2api_0.2.23_linux_amd64.tar.gz
6
  RUN set -eux; \
7
  curl --fail --location --retry 4 --retry-all-errors --connect-timeout 20 --max-time 600 \
8
  "$SUB2API_RELEASE_URL" \
9
  --output release.tar.gz; \
10
+ printf '%s %s\n' 'cf9fae8b96f832b0d8ac19aae2442fff388379e99cba20d959df683aeb0c6fba' 'release.tar.gz' | sha256sum -c -; \
11
  tar -xzf release.tar.gz sub2api; \
12
+ printf '%s %s\n' '103fba846955f5cd0919c51b578e256ce5d4e691072b56a8a0b9102a975bcaf1' 'sub2api' | sha256sum -c -; \
13
  chmod 755 sub2api
14
 
15
  FROM postgres:17-alpine
 
40
 
41
  COPY --from=sub2api-release /release/sub2api /app/server
42
  COPY model_prices_and_context_window.json /app/resources/model-pricing/model_prices_and_context_window.json
43
+ RUN printf '%s %s\n' '407049cb91f1d09592900e817d126e87f35dcd1533af3e8276ae62bfeb40595f' \
44
  '/app/resources/model-pricing/model_prices_and_context_window.json' | sha256sum -c -
45
 
46
  COPY start.sh /app/start.sh
model_prices_and_context_window.json CHANGED
@@ -44,6 +44,114 @@
44
  "supports_prompt_caching": true,
45
  "supports_service_tier": true
46
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  "gpt-6.1-sol": {
48
  "cache_creation_input_token_cost": 2.5e-06,
49
  "cache_creation_input_token_cost_batches": 1.25e-06,
 
44
  "supports_prompt_caching": true,
45
  "supports_service_tier": true
46
  },
47
+ "gpt-6.2-sol": {
48
+ "cache_creation_input_token_cost": 2.5e-06,
49
+ "cache_creation_input_token_cost_batches": 1.25e-06,
50
+ "cache_creation_input_token_cost_flex": 1.25e-06,
51
+ "cache_creation_input_token_cost_priority": 5e-06,
52
+ "cache_read_input_token_cost": 1e-07,
53
+ "cache_read_input_token_cost_flex": 5e-08,
54
+ "cache_read_input_token_cost_priority": 2e-07,
55
+ "input_cost_per_token": 2e-06,
56
+ "input_cost_per_token_batches": 1e-06,
57
+ "input_cost_per_token_flex": 1e-06,
58
+ "input_cost_per_token_priority": 4e-06,
59
+ "long_context_input_token_threshold": 272000,
60
+ "long_context_input_cost_multiplier": 2.0,
61
+ "long_context_output_cost_multiplier": 1.5,
62
+ "litellm_provider": "openai",
63
+ "max_input_tokens": 922000,
64
+ "max_output_tokens": 128000,
65
+ "max_tokens": 128000,
66
+ "mode": "chat",
67
+ "output_cost_per_token": 1e-05,
68
+ "output_cost_per_token_batches": 5e-06,
69
+ "output_cost_per_token_flex": 5e-06,
70
+ "output_cost_per_token_priority": 2e-05,
71
+ "supported_endpoints": [
72
+ "/v1/chat/completions",
73
+ "/v1/batch",
74
+ "/v1/responses"
75
+ ],
76
+ "supported_modalities": [
77
+ "text",
78
+ "image"
79
+ ],
80
+ "supported_output_modalities": [
81
+ "text"
82
+ ],
83
+ "supports_function_calling": true,
84
+ "supports_minimal_reasoning_effort": false,
85
+ "supports_native_streaming": true,
86
+ "supports_none_reasoning_effort": false,
87
+ "supports_parallel_function_calling": true,
88
+ "supports_pdf_input": true,
89
+ "supports_prompt_caching": true,
90
+ "supports_reasoning": true,
91
+ "supports_response_schema": true,
92
+ "supports_service_tier": true,
93
+ "supports_system_messages": true,
94
+ "supports_tool_choice": true,
95
+ "supports_vision": true,
96
+ "supports_web_search": true,
97
+ "supports_xhigh_reasoning_effort": true,
98
+ "cache_read_input_token_cost_batches": 5e-08,
99
+ "context_window": 1050000
100
+ },
101
+ "gpt-6.2-astra": {
102
+ "cache_creation_input_token_cost": 1e-05,
103
+ "cache_creation_input_token_cost_batches": 5e-06,
104
+ "cache_creation_input_token_cost_flex": 5e-06,
105
+ "cache_creation_input_token_cost_priority": 2e-05,
106
+ "cache_read_input_token_cost": 4e-07,
107
+ "cache_read_input_token_cost_flex": 2e-07,
108
+ "cache_read_input_token_cost_priority": 8e-07,
109
+ "input_cost_per_token": 8e-06,
110
+ "input_cost_per_token_batches": 4e-06,
111
+ "input_cost_per_token_flex": 4e-06,
112
+ "input_cost_per_token_priority": 1.6e-05,
113
+ "long_context_input_token_threshold": 272000,
114
+ "long_context_input_cost_multiplier": 2.0,
115
+ "long_context_output_cost_multiplier": 1.5,
116
+ "litellm_provider": "openai",
117
+ "max_input_tokens": 922000,
118
+ "max_output_tokens": 128000,
119
+ "max_tokens": 128000,
120
+ "mode": "chat",
121
+ "output_cost_per_token": 4e-05,
122
+ "output_cost_per_token_batches": 2e-05,
123
+ "output_cost_per_token_flex": 2e-05,
124
+ "output_cost_per_token_priority": 8e-05,
125
+ "supported_endpoints": [
126
+ "/v1/chat/completions",
127
+ "/v1/batch",
128
+ "/v1/responses"
129
+ ],
130
+ "supported_modalities": [
131
+ "text",
132
+ "image"
133
+ ],
134
+ "supported_output_modalities": [
135
+ "text"
136
+ ],
137
+ "supports_function_calling": true,
138
+ "supports_minimal_reasoning_effort": false,
139
+ "supports_native_streaming": true,
140
+ "supports_none_reasoning_effort": false,
141
+ "supports_parallel_function_calling": true,
142
+ "supports_pdf_input": true,
143
+ "supports_prompt_caching": true,
144
+ "supports_reasoning": true,
145
+ "supports_response_schema": true,
146
+ "supports_service_tier": true,
147
+ "supports_system_messages": true,
148
+ "supports_tool_choice": true,
149
+ "supports_vision": true,
150
+ "supports_web_search": true,
151
+ "supports_xhigh_reasoning_effort": true,
152
+ "cache_read_input_token_cost_batches": 2e-07,
153
+ "context_window": 1050000
154
+ },
155
  "gpt-6.1-sol": {
156
  "cache_creation_input_token_cost": 2.5e-06,
157
  "cache_creation_input_token_cost_batches": 1.25e-06,