ask-llm-providers 0.13.5 → 0.13.7
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/lib/ask/llm/models.json +563 -144
- data/lib/ask/llm/version.rb +1 -1
- data/lib/ask/provider/openai.rb +19 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 702da6909b940ff6695187cda4e588bd047a2c7d8edbaabd1c037ff68dcedc6b
|
|
4
|
+
data.tar.gz: 363641a625952797604bd8bb2fc3e3089819ce8cdd89a1d20f8c030092e828e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 13253c6eed671a1159c349dafbb2bab8138725b55d07664aaf4ac60956bc42a4930df14cce7cb9f8212413b8b4447c8b4de5aefc1163a4f5aa704b590ab0247f
|
|
7
|
+
data.tar.gz: bbeca3575d85b2f45d54f7602f12d8453488e1fd30302516d1bd9622ba8b24d20ef04ce0fe6effd9b2f06e33cade84a0b995480aa41d3c11e5e06f24eb28dfeb
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## [0.13.7] — 2026-09-14
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
|
|
5
|
+
- **Command Code catalog carries the live rate card.** All 68 entries shipped with zeroed pricing, so cost accounting (token ledgers, margin math) saw every Command Code call as free. Each entry now has the provider's published per-million rates: input, output, and cache-read for every model, cache-write where published, plus `deepseek/deepseek-v4-flash-vision-exp` gains vision/image input. The four DeepSeek V4 models (v4.1-flash, v4-flash, v4-flash-vision-exp, v4-pro) also carry a `peak` tier — off-peak is standard; weekdays 01:00–04:00 and 06:00–10:00 UTC bill at 2x, weekends are fully off-peak (`metadata.peak_windows`).
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **`inclusionai/ling-3.0-flash-sante:free`** — the free Ling 3.0 Flash Sante model from the live Command Code `/models` listing.
|
|
10
|
+
|
|
11
|
+
## [0.13.6] — 2026-09-13
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- **`deepseek/deepseek-v4.1-flash` is multimodal.** The catalog entry declared
|
|
16
|
+
text-only, so agents refused to send it images; it now carries image input
|
|
17
|
+
and the vision capability (native visual understanding since the Sept 10
|
|
18
|
+
release).
|
|
19
|
+
|
|
20
|
+
- **Empty user continuations are dropped from OpenAI-compatible requests.** After tool calls the agent loop appends an empty user message to prompt the next turn; strict gateways (Command Code) reject it with "user message must have content", breaking every tool-using turn. The provider now omits contentless user messages, which carry no information.
|
|
21
|
+
|
|
1
22
|
## [0.13.1] — 2026-09-05
|
|
2
23
|
|
|
3
24
|
### Fixed
|
data/lib/ask/llm/models.json
CHANGED
|
@@ -4654,8 +4654,13 @@
|
|
|
4654
4654
|
]
|
|
4655
4655
|
},
|
|
4656
4656
|
"pricing": {
|
|
4657
|
-
"
|
|
4658
|
-
|
|
4657
|
+
"text_tokens": {
|
|
4658
|
+
"standard": {
|
|
4659
|
+
"input_per_million": 0.3,
|
|
4660
|
+
"output_per_million": 1.2,
|
|
4661
|
+
"cache_read_input_per_million": 0.03
|
|
4662
|
+
}
|
|
4663
|
+
}
|
|
4659
4664
|
}
|
|
4660
4665
|
},
|
|
4661
4666
|
{
|
|
@@ -4676,8 +4681,13 @@
|
|
|
4676
4681
|
]
|
|
4677
4682
|
},
|
|
4678
4683
|
"pricing": {
|
|
4679
|
-
"
|
|
4680
|
-
|
|
4684
|
+
"text_tokens": {
|
|
4685
|
+
"standard": {
|
|
4686
|
+
"input_per_million": 0.3,
|
|
4687
|
+
"output_per_million": 1.2,
|
|
4688
|
+
"cache_read_input_per_million": 0.06
|
|
4689
|
+
}
|
|
4690
|
+
}
|
|
4681
4691
|
}
|
|
4682
4692
|
},
|
|
4683
4693
|
{
|
|
@@ -4698,8 +4708,13 @@
|
|
|
4698
4708
|
]
|
|
4699
4709
|
},
|
|
4700
4710
|
"pricing": {
|
|
4701
|
-
"
|
|
4702
|
-
|
|
4711
|
+
"text_tokens": {
|
|
4712
|
+
"standard": {
|
|
4713
|
+
"input_per_million": 0.3,
|
|
4714
|
+
"output_per_million": 1.2,
|
|
4715
|
+
"cache_read_input_per_million": 0.06
|
|
4716
|
+
}
|
|
4717
|
+
}
|
|
4703
4718
|
}
|
|
4704
4719
|
},
|
|
4705
4720
|
{
|
|
@@ -4720,8 +4735,14 @@
|
|
|
4720
4735
|
]
|
|
4721
4736
|
},
|
|
4722
4737
|
"pricing": {
|
|
4723
|
-
"
|
|
4724
|
-
|
|
4738
|
+
"text_tokens": {
|
|
4739
|
+
"standard": {
|
|
4740
|
+
"input_per_million": 1.3,
|
|
4741
|
+
"output_per_million": 7.8,
|
|
4742
|
+
"cache_read_input_per_million": 0.26,
|
|
4743
|
+
"cache_write_input_per_million": 1.63
|
|
4744
|
+
}
|
|
4745
|
+
}
|
|
4725
4746
|
}
|
|
4726
4747
|
},
|
|
4727
4748
|
{
|
|
@@ -4742,8 +4763,13 @@
|
|
|
4742
4763
|
]
|
|
4743
4764
|
},
|
|
4744
4765
|
"pricing": {
|
|
4745
|
-
"
|
|
4746
|
-
|
|
4766
|
+
"text_tokens": {
|
|
4767
|
+
"standard": {
|
|
4768
|
+
"input_per_million": 0.5,
|
|
4769
|
+
"output_per_million": 3.0,
|
|
4770
|
+
"cache_read_input_per_million": 0.1
|
|
4771
|
+
}
|
|
4772
|
+
}
|
|
4747
4773
|
}
|
|
4748
4774
|
},
|
|
4749
4775
|
{
|
|
@@ -4764,8 +4790,14 @@
|
|
|
4764
4790
|
]
|
|
4765
4791
|
},
|
|
4766
4792
|
"pricing": {
|
|
4767
|
-
"
|
|
4768
|
-
|
|
4793
|
+
"text_tokens": {
|
|
4794
|
+
"standard": {
|
|
4795
|
+
"input_per_million": 0.03,
|
|
4796
|
+
"output_per_million": 0.13,
|
|
4797
|
+
"cache_read_input_per_million": 0.006,
|
|
4798
|
+
"cache_write_input_per_million": 0.038
|
|
4799
|
+
}
|
|
4800
|
+
}
|
|
4769
4801
|
}
|
|
4770
4802
|
},
|
|
4771
4803
|
{
|
|
@@ -4786,8 +4818,14 @@
|
|
|
4786
4818
|
]
|
|
4787
4819
|
},
|
|
4788
4820
|
"pricing": {
|
|
4789
|
-
"
|
|
4790
|
-
|
|
4821
|
+
"text_tokens": {
|
|
4822
|
+
"standard": {
|
|
4823
|
+
"input_per_million": 2.5,
|
|
4824
|
+
"output_per_million": 7.5,
|
|
4825
|
+
"cache_read_input_per_million": 0.5,
|
|
4826
|
+
"cache_write_input_per_million": 3.13
|
|
4827
|
+
}
|
|
4828
|
+
}
|
|
4791
4829
|
}
|
|
4792
4830
|
},
|
|
4793
4831
|
{
|
|
@@ -4808,8 +4846,14 @@
|
|
|
4808
4846
|
]
|
|
4809
4847
|
},
|
|
4810
4848
|
"pricing": {
|
|
4811
|
-
"
|
|
4812
|
-
|
|
4849
|
+
"text_tokens": {
|
|
4850
|
+
"standard": {
|
|
4851
|
+
"input_per_million": 0.4,
|
|
4852
|
+
"output_per_million": 1.6,
|
|
4853
|
+
"cache_read_input_per_million": 0.08,
|
|
4854
|
+
"cache_write_input_per_million": 0.5
|
|
4855
|
+
}
|
|
4856
|
+
}
|
|
4813
4857
|
}
|
|
4814
4858
|
},
|
|
4815
4859
|
{
|
|
@@ -4830,8 +4874,13 @@
|
|
|
4830
4874
|
]
|
|
4831
4875
|
},
|
|
4832
4876
|
"pricing": {
|
|
4833
|
-
"
|
|
4834
|
-
|
|
4877
|
+
"text_tokens": {
|
|
4878
|
+
"standard": {
|
|
4879
|
+
"input_per_million": 0.4,
|
|
4880
|
+
"output_per_million": 3.0,
|
|
4881
|
+
"cache_read_input_per_million": 0.04
|
|
4882
|
+
}
|
|
4883
|
+
}
|
|
4835
4884
|
}
|
|
4836
4885
|
},
|
|
4837
4886
|
{
|
|
@@ -4852,8 +4901,13 @@
|
|
|
4852
4901
|
]
|
|
4853
4902
|
},
|
|
4854
4903
|
"pricing": {
|
|
4855
|
-
"
|
|
4856
|
-
|
|
4904
|
+
"text_tokens": {
|
|
4905
|
+
"standard": {
|
|
4906
|
+
"input_per_million": 0.16,
|
|
4907
|
+
"output_per_million": 0.47,
|
|
4908
|
+
"cache_read_input_per_million": 0.016
|
|
4909
|
+
}
|
|
4910
|
+
}
|
|
4857
4911
|
}
|
|
4858
4912
|
},
|
|
4859
4913
|
{
|
|
@@ -4874,8 +4928,13 @@
|
|
|
4874
4928
|
]
|
|
4875
4929
|
},
|
|
4876
4930
|
"pricing": {
|
|
4877
|
-
"
|
|
4878
|
-
|
|
4931
|
+
"text_tokens": {
|
|
4932
|
+
"standard": {
|
|
4933
|
+
"input_per_million": 2.0,
|
|
4934
|
+
"output_per_million": 6.0,
|
|
4935
|
+
"cache_read_input_per_million": 0.25
|
|
4936
|
+
}
|
|
4937
|
+
}
|
|
4879
4938
|
}
|
|
4880
4939
|
},
|
|
4881
4940
|
{
|
|
@@ -4896,8 +4955,13 @@
|
|
|
4896
4955
|
]
|
|
4897
4956
|
},
|
|
4898
4957
|
"pricing": {
|
|
4899
|
-
"
|
|
4900
|
-
|
|
4958
|
+
"text_tokens": {
|
|
4959
|
+
"standard": {
|
|
4960
|
+
"input_per_million": 2.0,
|
|
4961
|
+
"output_per_million": 6.0,
|
|
4962
|
+
"cache_read_input_per_million": 0.25
|
|
4963
|
+
}
|
|
4964
|
+
}
|
|
4901
4965
|
}
|
|
4902
4966
|
},
|
|
4903
4967
|
{
|
|
@@ -4918,8 +4982,14 @@
|
|
|
4918
4982
|
]
|
|
4919
4983
|
},
|
|
4920
4984
|
"pricing": {
|
|
4921
|
-
"
|
|
4922
|
-
|
|
4985
|
+
"text_tokens": {
|
|
4986
|
+
"standard": {
|
|
4987
|
+
"input_per_million": 10.0,
|
|
4988
|
+
"output_per_million": 50.0,
|
|
4989
|
+
"cache_read_input_per_million": 1.0,
|
|
4990
|
+
"cache_write_input_per_million": 12.5
|
|
4991
|
+
}
|
|
4992
|
+
}
|
|
4923
4993
|
}
|
|
4924
4994
|
},
|
|
4925
4995
|
{
|
|
@@ -4940,8 +5010,14 @@
|
|
|
4940
5010
|
]
|
|
4941
5011
|
},
|
|
4942
5012
|
"pricing": {
|
|
4943
|
-
"
|
|
4944
|
-
|
|
5013
|
+
"text_tokens": {
|
|
5014
|
+
"standard": {
|
|
5015
|
+
"input_per_million": 10.0,
|
|
5016
|
+
"output_per_million": 50.0,
|
|
5017
|
+
"cache_read_input_per_million": 0.25,
|
|
5018
|
+
"cache_write_input_per_million": 12.5
|
|
5019
|
+
}
|
|
5020
|
+
}
|
|
4945
5021
|
}
|
|
4946
5022
|
},
|
|
4947
5023
|
{
|
|
@@ -4962,8 +5038,14 @@
|
|
|
4962
5038
|
]
|
|
4963
5039
|
},
|
|
4964
5040
|
"pricing": {
|
|
4965
|
-
"
|
|
4966
|
-
|
|
5041
|
+
"text_tokens": {
|
|
5042
|
+
"standard": {
|
|
5043
|
+
"input_per_million": 1.0,
|
|
5044
|
+
"output_per_million": 5.0,
|
|
5045
|
+
"cache_read_input_per_million": 0.1,
|
|
5046
|
+
"cache_write_input_per_million": 1.25
|
|
5047
|
+
}
|
|
5048
|
+
}
|
|
4967
5049
|
}
|
|
4968
5050
|
},
|
|
4969
5051
|
{
|
|
@@ -4984,8 +5066,14 @@
|
|
|
4984
5066
|
]
|
|
4985
5067
|
},
|
|
4986
5068
|
"pricing": {
|
|
4987
|
-
"
|
|
4988
|
-
|
|
5069
|
+
"text_tokens": {
|
|
5070
|
+
"standard": {
|
|
5071
|
+
"input_per_million": 5.0,
|
|
5072
|
+
"output_per_million": 25.0,
|
|
5073
|
+
"cache_read_input_per_million": 0.5,
|
|
5074
|
+
"cache_write_input_per_million": 6.25
|
|
5075
|
+
}
|
|
5076
|
+
}
|
|
4989
5077
|
}
|
|
4990
5078
|
},
|
|
4991
5079
|
{
|
|
@@ -5006,8 +5094,14 @@
|
|
|
5006
5094
|
]
|
|
5007
5095
|
},
|
|
5008
5096
|
"pricing": {
|
|
5009
|
-
"
|
|
5010
|
-
|
|
5097
|
+
"text_tokens": {
|
|
5098
|
+
"standard": {
|
|
5099
|
+
"input_per_million": 5.0,
|
|
5100
|
+
"output_per_million": 25.0,
|
|
5101
|
+
"cache_read_input_per_million": 0.5,
|
|
5102
|
+
"cache_write_input_per_million": 6.25
|
|
5103
|
+
}
|
|
5104
|
+
}
|
|
5011
5105
|
}
|
|
5012
5106
|
},
|
|
5013
5107
|
{
|
|
@@ -5028,8 +5122,14 @@
|
|
|
5028
5122
|
]
|
|
5029
5123
|
},
|
|
5030
5124
|
"pricing": {
|
|
5031
|
-
"
|
|
5032
|
-
|
|
5125
|
+
"text_tokens": {
|
|
5126
|
+
"standard": {
|
|
5127
|
+
"input_per_million": 5.0,
|
|
5128
|
+
"output_per_million": 25.0,
|
|
5129
|
+
"cache_read_input_per_million": 0.5,
|
|
5130
|
+
"cache_write_input_per_million": 6.25
|
|
5131
|
+
}
|
|
5132
|
+
}
|
|
5033
5133
|
}
|
|
5034
5134
|
},
|
|
5035
5135
|
{
|
|
@@ -5050,8 +5150,14 @@
|
|
|
5050
5150
|
]
|
|
5051
5151
|
},
|
|
5052
5152
|
"pricing": {
|
|
5053
|
-
"
|
|
5054
|
-
|
|
5153
|
+
"text_tokens": {
|
|
5154
|
+
"standard": {
|
|
5155
|
+
"input_per_million": 3.0,
|
|
5156
|
+
"output_per_million": 15.0,
|
|
5157
|
+
"cache_read_input_per_million": 0.3,
|
|
5158
|
+
"cache_write_input_per_million": 3.75
|
|
5159
|
+
}
|
|
5160
|
+
}
|
|
5055
5161
|
}
|
|
5056
5162
|
},
|
|
5057
5163
|
{
|
|
@@ -5072,8 +5178,14 @@
|
|
|
5072
5178
|
]
|
|
5073
5179
|
},
|
|
5074
5180
|
"pricing": {
|
|
5075
|
-
"
|
|
5076
|
-
|
|
5181
|
+
"text_tokens": {
|
|
5182
|
+
"standard": {
|
|
5183
|
+
"input_per_million": 2.0,
|
|
5184
|
+
"output_per_million": 10.0,
|
|
5185
|
+
"cache_read_input_per_million": 0.2,
|
|
5186
|
+
"cache_write_input_per_million": 2.5
|
|
5187
|
+
}
|
|
5188
|
+
}
|
|
5077
5189
|
}
|
|
5078
5190
|
},
|
|
5079
5191
|
{
|
|
@@ -5083,19 +5195,34 @@
|
|
|
5083
5195
|
"context_window": 1000000,
|
|
5084
5196
|
"capabilities": [
|
|
5085
5197
|
"function_calling",
|
|
5086
|
-
"streaming"
|
|
5198
|
+
"streaming",
|
|
5199
|
+
"vision"
|
|
5087
5200
|
],
|
|
5088
5201
|
"modalities": {
|
|
5089
5202
|
"input": [
|
|
5090
|
-
"text"
|
|
5203
|
+
"text",
|
|
5204
|
+
"image"
|
|
5091
5205
|
],
|
|
5092
5206
|
"output": [
|
|
5093
5207
|
"text"
|
|
5094
5208
|
]
|
|
5095
5209
|
},
|
|
5096
5210
|
"pricing": {
|
|
5097
|
-
"
|
|
5098
|
-
|
|
5211
|
+
"text_tokens": {
|
|
5212
|
+
"standard": {
|
|
5213
|
+
"input_per_million": 0.15,
|
|
5214
|
+
"output_per_million": 0.6,
|
|
5215
|
+
"cache_read_input_per_million": 0.003
|
|
5216
|
+
},
|
|
5217
|
+
"peak": {
|
|
5218
|
+
"input_per_million": 0.3,
|
|
5219
|
+
"output_per_million": 1.2,
|
|
5220
|
+
"cache_read_input_per_million": 0.006
|
|
5221
|
+
}
|
|
5222
|
+
}
|
|
5223
|
+
},
|
|
5224
|
+
"metadata": {
|
|
5225
|
+
"peak_windows": "Mon-Fri 01:00-04:00 and 06:00-10:00 UTC bill at 2x (peak tier); weekends are fully off-peak"
|
|
5099
5226
|
}
|
|
5100
5227
|
},
|
|
5101
5228
|
{
|
|
@@ -5116,8 +5243,21 @@
|
|
|
5116
5243
|
]
|
|
5117
5244
|
},
|
|
5118
5245
|
"pricing": {
|
|
5119
|
-
"
|
|
5120
|
-
|
|
5246
|
+
"text_tokens": {
|
|
5247
|
+
"standard": {
|
|
5248
|
+
"input_per_million": 0.15,
|
|
5249
|
+
"output_per_million": 0.6,
|
|
5250
|
+
"cache_read_input_per_million": 0.003
|
|
5251
|
+
},
|
|
5252
|
+
"peak": {
|
|
5253
|
+
"input_per_million": 0.3,
|
|
5254
|
+
"output_per_million": 1.2,
|
|
5255
|
+
"cache_read_input_per_million": 0.006
|
|
5256
|
+
}
|
|
5257
|
+
}
|
|
5258
|
+
},
|
|
5259
|
+
"metadata": {
|
|
5260
|
+
"peak_windows": "Mon-Fri 01:00-04:00 and 06:00-10:00 UTC bill at 2x (peak tier); weekends are fully off-peak"
|
|
5121
5261
|
}
|
|
5122
5262
|
},
|
|
5123
5263
|
{
|
|
@@ -5138,8 +5278,13 @@
|
|
|
5138
5278
|
]
|
|
5139
5279
|
},
|
|
5140
5280
|
"pricing": {
|
|
5141
|
-
"
|
|
5142
|
-
|
|
5281
|
+
"text_tokens": {
|
|
5282
|
+
"standard": {
|
|
5283
|
+
"input_per_million": 0.28,
|
|
5284
|
+
"output_per_million": 0.56,
|
|
5285
|
+
"cache_read_input_per_million": 0.07
|
|
5286
|
+
}
|
|
5287
|
+
}
|
|
5143
5288
|
}
|
|
5144
5289
|
},
|
|
5145
5290
|
{
|
|
@@ -5149,19 +5294,34 @@
|
|
|
5149
5294
|
"context_window": 1000000,
|
|
5150
5295
|
"capabilities": [
|
|
5151
5296
|
"function_calling",
|
|
5152
|
-
"streaming"
|
|
5297
|
+
"streaming",
|
|
5298
|
+
"vision"
|
|
5153
5299
|
],
|
|
5154
5300
|
"modalities": {
|
|
5155
5301
|
"input": [
|
|
5156
|
-
"text"
|
|
5302
|
+
"text",
|
|
5303
|
+
"image"
|
|
5157
5304
|
],
|
|
5158
5305
|
"output": [
|
|
5159
5306
|
"text"
|
|
5160
5307
|
]
|
|
5161
5308
|
},
|
|
5162
5309
|
"pricing": {
|
|
5163
|
-
"
|
|
5164
|
-
|
|
5310
|
+
"text_tokens": {
|
|
5311
|
+
"standard": {
|
|
5312
|
+
"input_per_million": 0.15,
|
|
5313
|
+
"output_per_million": 0.6,
|
|
5314
|
+
"cache_read_input_per_million": 0.003
|
|
5315
|
+
},
|
|
5316
|
+
"peak": {
|
|
5317
|
+
"input_per_million": 0.3,
|
|
5318
|
+
"output_per_million": 1.2,
|
|
5319
|
+
"cache_read_input_per_million": 0.006
|
|
5320
|
+
}
|
|
5321
|
+
}
|
|
5322
|
+
},
|
|
5323
|
+
"metadata": {
|
|
5324
|
+
"peak_windows": "Mon-Fri 01:00-04:00 and 06:00-10:00 UTC bill at 2x (peak tier); weekends are fully off-peak"
|
|
5165
5325
|
}
|
|
5166
5326
|
},
|
|
5167
5327
|
{
|
|
@@ -5182,8 +5342,21 @@
|
|
|
5182
5342
|
]
|
|
5183
5343
|
},
|
|
5184
5344
|
"pricing": {
|
|
5185
|
-
"
|
|
5186
|
-
|
|
5345
|
+
"text_tokens": {
|
|
5346
|
+
"standard": {
|
|
5347
|
+
"input_per_million": 0.66,
|
|
5348
|
+
"output_per_million": 1.98,
|
|
5349
|
+
"cache_read_input_per_million": 0.022
|
|
5350
|
+
},
|
|
5351
|
+
"peak": {
|
|
5352
|
+
"input_per_million": 1.32,
|
|
5353
|
+
"output_per_million": 3.96,
|
|
5354
|
+
"cache_read_input_per_million": 0.044
|
|
5355
|
+
}
|
|
5356
|
+
}
|
|
5357
|
+
},
|
|
5358
|
+
"metadata": {
|
|
5359
|
+
"peak_windows": "Mon-Fri 01:00-04:00 and 06:00-10:00 UTC bill at 2x (peak tier); weekends are fully off-peak"
|
|
5187
5360
|
}
|
|
5188
5361
|
},
|
|
5189
5362
|
{
|
|
@@ -5204,8 +5377,13 @@
|
|
|
5204
5377
|
]
|
|
5205
5378
|
},
|
|
5206
5379
|
"pricing": {
|
|
5207
|
-
"
|
|
5208
|
-
|
|
5380
|
+
"text_tokens": {
|
|
5381
|
+
"standard": {
|
|
5382
|
+
"input_per_million": 0.25,
|
|
5383
|
+
"output_per_million": 1.5,
|
|
5384
|
+
"cache_read_input_per_million": 0.03
|
|
5385
|
+
}
|
|
5386
|
+
}
|
|
5209
5387
|
}
|
|
5210
5388
|
},
|
|
5211
5389
|
{
|
|
@@ -5226,8 +5404,13 @@
|
|
|
5226
5404
|
]
|
|
5227
5405
|
},
|
|
5228
5406
|
"pricing": {
|
|
5229
|
-
"
|
|
5230
|
-
|
|
5407
|
+
"text_tokens": {
|
|
5408
|
+
"standard": {
|
|
5409
|
+
"input_per_million": 1.5,
|
|
5410
|
+
"output_per_million": 9.0,
|
|
5411
|
+
"cache_read_input_per_million": 0.15
|
|
5412
|
+
}
|
|
5413
|
+
}
|
|
5231
5414
|
}
|
|
5232
5415
|
},
|
|
5233
5416
|
{
|
|
@@ -5248,8 +5431,13 @@
|
|
|
5248
5431
|
]
|
|
5249
5432
|
},
|
|
5250
5433
|
"pricing": {
|
|
5251
|
-
"
|
|
5252
|
-
|
|
5434
|
+
"text_tokens": {
|
|
5435
|
+
"standard": {
|
|
5436
|
+
"input_per_million": 0.3,
|
|
5437
|
+
"output_per_million": 2.5,
|
|
5438
|
+
"cache_read_input_per_million": 0.03
|
|
5439
|
+
}
|
|
5440
|
+
}
|
|
5253
5441
|
}
|
|
5254
5442
|
},
|
|
5255
5443
|
{
|
|
@@ -5270,8 +5458,13 @@
|
|
|
5270
5458
|
]
|
|
5271
5459
|
},
|
|
5272
5460
|
"pricing": {
|
|
5273
|
-
"
|
|
5274
|
-
|
|
5461
|
+
"text_tokens": {
|
|
5462
|
+
"standard": {
|
|
5463
|
+
"input_per_million": 1.5,
|
|
5464
|
+
"output_per_million": 7.5,
|
|
5465
|
+
"cache_read_input_per_million": 0.15
|
|
5466
|
+
}
|
|
5467
|
+
}
|
|
5275
5468
|
}
|
|
5276
5469
|
},
|
|
5277
5470
|
{
|
|
@@ -5292,8 +5485,14 @@
|
|
|
5292
5485
|
]
|
|
5293
5486
|
},
|
|
5294
5487
|
"pricing": {
|
|
5295
|
-
"
|
|
5296
|
-
|
|
5488
|
+
"text_tokens": {
|
|
5489
|
+
"standard": {
|
|
5490
|
+
"input_per_million": 1.5,
|
|
5491
|
+
"output_per_million": 7.5,
|
|
5492
|
+
"cache_read_input_per_million": 0.15,
|
|
5493
|
+
"cache_write_input_per_million": 0.08334
|
|
5494
|
+
}
|
|
5495
|
+
}
|
|
5297
5496
|
}
|
|
5298
5497
|
},
|
|
5299
5498
|
{
|
|
@@ -5314,8 +5513,13 @@
|
|
|
5314
5513
|
]
|
|
5315
5514
|
},
|
|
5316
5515
|
"pricing": {
|
|
5317
|
-
"
|
|
5318
|
-
|
|
5516
|
+
"text_tokens": {
|
|
5517
|
+
"standard": {
|
|
5518
|
+
"input_per_million": 1.5,
|
|
5519
|
+
"output_per_million": 7.5,
|
|
5520
|
+
"cache_read_input_per_million": 0.15
|
|
5521
|
+
}
|
|
5522
|
+
}
|
|
5319
5523
|
}
|
|
5320
5524
|
},
|
|
5321
5525
|
{
|
|
@@ -5336,8 +5540,13 @@
|
|
|
5336
5540
|
]
|
|
5337
5541
|
},
|
|
5338
5542
|
"pricing": {
|
|
5339
|
-
"
|
|
5340
|
-
|
|
5543
|
+
"text_tokens": {
|
|
5544
|
+
"standard": {
|
|
5545
|
+
"input_per_million": 2.0,
|
|
5546
|
+
"output_per_million": 8.0,
|
|
5547
|
+
"cache_read_input_per_million": 0.5
|
|
5548
|
+
}
|
|
5549
|
+
}
|
|
5341
5550
|
}
|
|
5342
5551
|
},
|
|
5343
5552
|
{
|
|
@@ -5358,8 +5567,13 @@
|
|
|
5358
5567
|
]
|
|
5359
5568
|
},
|
|
5360
5569
|
"pricing": {
|
|
5361
|
-
"
|
|
5362
|
-
|
|
5570
|
+
"text_tokens": {
|
|
5571
|
+
"standard": {
|
|
5572
|
+
"input_per_million": 2.5,
|
|
5573
|
+
"output_per_million": 15.0,
|
|
5574
|
+
"cache_read_input_per_million": 0.25
|
|
5575
|
+
}
|
|
5576
|
+
}
|
|
5363
5577
|
}
|
|
5364
5578
|
},
|
|
5365
5579
|
{
|
|
@@ -5380,8 +5594,13 @@
|
|
|
5380
5594
|
]
|
|
5381
5595
|
},
|
|
5382
5596
|
"pricing": {
|
|
5383
|
-
"
|
|
5384
|
-
|
|
5597
|
+
"text_tokens": {
|
|
5598
|
+
"standard": {
|
|
5599
|
+
"input_per_million": 0.75,
|
|
5600
|
+
"output_per_million": 4.5,
|
|
5601
|
+
"cache_read_input_per_million": 0.075
|
|
5602
|
+
}
|
|
5603
|
+
}
|
|
5385
5604
|
}
|
|
5386
5605
|
},
|
|
5387
5606
|
{
|
|
@@ -5402,8 +5621,13 @@
|
|
|
5402
5621
|
]
|
|
5403
5622
|
},
|
|
5404
5623
|
"pricing": {
|
|
5405
|
-
"
|
|
5406
|
-
|
|
5624
|
+
"text_tokens": {
|
|
5625
|
+
"standard": {
|
|
5626
|
+
"input_per_million": 5.0,
|
|
5627
|
+
"output_per_million": 30.0,
|
|
5628
|
+
"cache_read_input_per_million": 0.5
|
|
5629
|
+
}
|
|
5630
|
+
}
|
|
5407
5631
|
}
|
|
5408
5632
|
},
|
|
5409
5633
|
{
|
|
@@ -5424,8 +5648,14 @@
|
|
|
5424
5648
|
]
|
|
5425
5649
|
},
|
|
5426
5650
|
"pricing": {
|
|
5427
|
-
"
|
|
5428
|
-
|
|
5651
|
+
"text_tokens": {
|
|
5652
|
+
"standard": {
|
|
5653
|
+
"input_per_million": 0.2,
|
|
5654
|
+
"output_per_million": 1.2,
|
|
5655
|
+
"cache_read_input_per_million": 0.02,
|
|
5656
|
+
"cache_write_input_per_million": 0.25
|
|
5657
|
+
}
|
|
5658
|
+
}
|
|
5429
5659
|
}
|
|
5430
5660
|
},
|
|
5431
5661
|
{
|
|
@@ -5446,15 +5676,49 @@
|
|
|
5446
5676
|
]
|
|
5447
5677
|
},
|
|
5448
5678
|
"pricing": {
|
|
5449
|
-
"
|
|
5450
|
-
|
|
5679
|
+
"text_tokens": {
|
|
5680
|
+
"standard": {
|
|
5681
|
+
"input_per_million": 5.0,
|
|
5682
|
+
"output_per_million": 30.0,
|
|
5683
|
+
"cache_read_input_per_million": 0.5,
|
|
5684
|
+
"cache_write_input_per_million": 6.25
|
|
5685
|
+
}
|
|
5686
|
+
}
|
|
5687
|
+
}
|
|
5688
|
+
},
|
|
5689
|
+
{
|
|
5690
|
+
"id": "gpt-5.6-terra",
|
|
5691
|
+
"name": "GPT-5.6 Terra",
|
|
5692
|
+
"provider": "commandcode",
|
|
5693
|
+
"context_window": 1050000,
|
|
5694
|
+
"capabilities": [
|
|
5695
|
+
"function_calling",
|
|
5696
|
+
"streaming"
|
|
5697
|
+
],
|
|
5698
|
+
"modalities": {
|
|
5699
|
+
"input": [
|
|
5700
|
+
"text"
|
|
5701
|
+
],
|
|
5702
|
+
"output": [
|
|
5703
|
+
"text"
|
|
5704
|
+
]
|
|
5705
|
+
},
|
|
5706
|
+
"pricing": {
|
|
5707
|
+
"text_tokens": {
|
|
5708
|
+
"standard": {
|
|
5709
|
+
"input_per_million": 2.0,
|
|
5710
|
+
"output_per_million": 12.0,
|
|
5711
|
+
"cache_read_input_per_million": 0.2,
|
|
5712
|
+
"cache_write_input_per_million": 2.5
|
|
5713
|
+
}
|
|
5714
|
+
}
|
|
5451
5715
|
}
|
|
5452
5716
|
},
|
|
5453
5717
|
{
|
|
5454
|
-
"id": "
|
|
5455
|
-
"name": "
|
|
5718
|
+
"id": "inclusionai/ling-3.0-flash-sante:free",
|
|
5719
|
+
"name": "Ling 3.0 Flash Sante",
|
|
5456
5720
|
"provider": "commandcode",
|
|
5457
|
-
"context_window":
|
|
5721
|
+
"context_window": 262144,
|
|
5458
5722
|
"capabilities": [
|
|
5459
5723
|
"function_calling",
|
|
5460
5724
|
"streaming"
|
|
@@ -5468,8 +5732,13 @@
|
|
|
5468
5732
|
]
|
|
5469
5733
|
},
|
|
5470
5734
|
"pricing": {
|
|
5471
|
-
"
|
|
5472
|
-
|
|
5735
|
+
"text_tokens": {
|
|
5736
|
+
"standard": {
|
|
5737
|
+
"input_per_million": 0,
|
|
5738
|
+
"output_per_million": 0,
|
|
5739
|
+
"cache_read_input_per_million": 0
|
|
5740
|
+
}
|
|
5741
|
+
}
|
|
5473
5742
|
}
|
|
5474
5743
|
},
|
|
5475
5744
|
{
|
|
@@ -5490,8 +5759,13 @@
|
|
|
5490
5759
|
]
|
|
5491
5760
|
},
|
|
5492
5761
|
"pricing": {
|
|
5493
|
-
"
|
|
5494
|
-
|
|
5762
|
+
"text_tokens": {
|
|
5763
|
+
"standard": {
|
|
5764
|
+
"input_per_million": 0.0,
|
|
5765
|
+
"output_per_million": 0.0,
|
|
5766
|
+
"cache_read_input_per_million": 0.0
|
|
5767
|
+
}
|
|
5768
|
+
}
|
|
5495
5769
|
}
|
|
5496
5770
|
},
|
|
5497
5771
|
{
|
|
@@ -5512,8 +5786,13 @@
|
|
|
5512
5786
|
]
|
|
5513
5787
|
},
|
|
5514
5788
|
"pricing": {
|
|
5515
|
-
"
|
|
5516
|
-
|
|
5789
|
+
"text_tokens": {
|
|
5790
|
+
"standard": {
|
|
5791
|
+
"input_per_million": 1.25,
|
|
5792
|
+
"output_per_million": 4.25,
|
|
5793
|
+
"cache_read_input_per_million": 0.15
|
|
5794
|
+
}
|
|
5795
|
+
}
|
|
5517
5796
|
}
|
|
5518
5797
|
},
|
|
5519
5798
|
{
|
|
@@ -5534,8 +5813,13 @@
|
|
|
5534
5813
|
]
|
|
5535
5814
|
},
|
|
5536
5815
|
"pricing": {
|
|
5537
|
-
"
|
|
5538
|
-
|
|
5816
|
+
"text_tokens": {
|
|
5817
|
+
"standard": {
|
|
5818
|
+
"input_per_million": 1.25,
|
|
5819
|
+
"output_per_million": 4.25,
|
|
5820
|
+
"cache_read_input_per_million": 0.15
|
|
5821
|
+
}
|
|
5822
|
+
}
|
|
5539
5823
|
}
|
|
5540
5824
|
},
|
|
5541
5825
|
{
|
|
@@ -5556,8 +5840,13 @@
|
|
|
5556
5840
|
]
|
|
5557
5841
|
},
|
|
5558
5842
|
"pricing": {
|
|
5559
|
-
"
|
|
5560
|
-
|
|
5843
|
+
"text_tokens": {
|
|
5844
|
+
"standard": {
|
|
5845
|
+
"input_per_million": 0.1,
|
|
5846
|
+
"output_per_million": 0.2,
|
|
5847
|
+
"cache_read_input_per_million": 0.002
|
|
5848
|
+
}
|
|
5849
|
+
}
|
|
5561
5850
|
}
|
|
5562
5851
|
},
|
|
5563
5852
|
{
|
|
@@ -5578,8 +5867,13 @@
|
|
|
5578
5867
|
]
|
|
5579
5868
|
},
|
|
5580
5869
|
"pricing": {
|
|
5581
|
-
"
|
|
5582
|
-
|
|
5870
|
+
"text_tokens": {
|
|
5871
|
+
"standard": {
|
|
5872
|
+
"input_per_million": 1.25,
|
|
5873
|
+
"output_per_million": 4.25,
|
|
5874
|
+
"cache_read_input_per_million": 0.15
|
|
5875
|
+
}
|
|
5876
|
+
}
|
|
5583
5877
|
}
|
|
5584
5878
|
},
|
|
5585
5879
|
{
|
|
@@ -5600,8 +5894,13 @@
|
|
|
5600
5894
|
]
|
|
5601
5895
|
},
|
|
5602
5896
|
"pricing": {
|
|
5603
|
-
"
|
|
5604
|
-
|
|
5897
|
+
"text_tokens": {
|
|
5898
|
+
"standard": {
|
|
5899
|
+
"input_per_million": 0.1,
|
|
5900
|
+
"output_per_million": 0.2,
|
|
5901
|
+
"cache_read_input_per_million": 0.002
|
|
5902
|
+
}
|
|
5903
|
+
}
|
|
5605
5904
|
}
|
|
5606
5905
|
},
|
|
5607
5906
|
{
|
|
@@ -5622,8 +5921,13 @@
|
|
|
5622
5921
|
]
|
|
5623
5922
|
},
|
|
5624
5923
|
"pricing": {
|
|
5625
|
-
"
|
|
5626
|
-
|
|
5924
|
+
"text_tokens": {
|
|
5925
|
+
"standard": {
|
|
5926
|
+
"input_per_million": 0.6,
|
|
5927
|
+
"output_per_million": 3.0,
|
|
5928
|
+
"cache_read_input_per_million": 0.1
|
|
5929
|
+
}
|
|
5930
|
+
}
|
|
5627
5931
|
}
|
|
5628
5932
|
},
|
|
5629
5933
|
{
|
|
@@ -5644,8 +5948,13 @@
|
|
|
5644
5948
|
]
|
|
5645
5949
|
},
|
|
5646
5950
|
"pricing": {
|
|
5647
|
-
"
|
|
5648
|
-
|
|
5951
|
+
"text_tokens": {
|
|
5952
|
+
"standard": {
|
|
5953
|
+
"input_per_million": 0.95,
|
|
5954
|
+
"output_per_million": 4.0,
|
|
5955
|
+
"cache_read_input_per_million": 0.16
|
|
5956
|
+
}
|
|
5957
|
+
}
|
|
5649
5958
|
}
|
|
5650
5959
|
},
|
|
5651
5960
|
{
|
|
@@ -5666,8 +5975,13 @@
|
|
|
5666
5975
|
]
|
|
5667
5976
|
},
|
|
5668
5977
|
"pricing": {
|
|
5669
|
-
"
|
|
5670
|
-
|
|
5978
|
+
"text_tokens": {
|
|
5979
|
+
"standard": {
|
|
5980
|
+
"input_per_million": 0.95,
|
|
5981
|
+
"output_per_million": 4.0,
|
|
5982
|
+
"cache_read_input_per_million": 0.19
|
|
5983
|
+
}
|
|
5984
|
+
}
|
|
5671
5985
|
}
|
|
5672
5986
|
},
|
|
5673
5987
|
{
|
|
@@ -5688,8 +6002,13 @@
|
|
|
5688
6002
|
]
|
|
5689
6003
|
},
|
|
5690
6004
|
"pricing": {
|
|
5691
|
-
"
|
|
5692
|
-
|
|
6005
|
+
"text_tokens": {
|
|
6006
|
+
"standard": {
|
|
6007
|
+
"input_per_million": 1.9,
|
|
6008
|
+
"output_per_million": 8.0,
|
|
6009
|
+
"cache_read_input_per_million": 0.38
|
|
6010
|
+
}
|
|
6011
|
+
}
|
|
5693
6012
|
}
|
|
5694
6013
|
},
|
|
5695
6014
|
{
|
|
@@ -5710,8 +6029,13 @@
|
|
|
5710
6029
|
]
|
|
5711
6030
|
},
|
|
5712
6031
|
"pricing": {
|
|
5713
|
-
"
|
|
5714
|
-
|
|
6032
|
+
"text_tokens": {
|
|
6033
|
+
"standard": {
|
|
6034
|
+
"input_per_million": 3.0,
|
|
6035
|
+
"output_per_million": 15.0,
|
|
6036
|
+
"cache_read_input_per_million": 0.3
|
|
6037
|
+
}
|
|
6038
|
+
}
|
|
5715
6039
|
}
|
|
5716
6040
|
},
|
|
5717
6041
|
{
|
|
@@ -5732,8 +6056,13 @@
|
|
|
5732
6056
|
]
|
|
5733
6057
|
},
|
|
5734
6058
|
"pricing": {
|
|
5735
|
-
"
|
|
5736
|
-
|
|
6059
|
+
"text_tokens": {
|
|
6060
|
+
"standard": {
|
|
6061
|
+
"input_per_million": 0.6,
|
|
6062
|
+
"output_per_million": 2.4,
|
|
6063
|
+
"cache_read_input_per_million": 0.12
|
|
6064
|
+
}
|
|
6065
|
+
}
|
|
5737
6066
|
}
|
|
5738
6067
|
},
|
|
5739
6068
|
{
|
|
@@ -5754,8 +6083,13 @@
|
|
|
5754
6083
|
]
|
|
5755
6084
|
},
|
|
5756
6085
|
"pricing": {
|
|
5757
|
-
"
|
|
5758
|
-
|
|
6086
|
+
"text_tokens": {
|
|
6087
|
+
"standard": {
|
|
6088
|
+
"input_per_million": 0.0,
|
|
6089
|
+
"output_per_million": 0.0,
|
|
6090
|
+
"cache_read_input_per_million": 0.0
|
|
6091
|
+
}
|
|
6092
|
+
}
|
|
5759
6093
|
}
|
|
5760
6094
|
},
|
|
5761
6095
|
{
|
|
@@ -5776,8 +6110,13 @@
|
|
|
5776
6110
|
]
|
|
5777
6111
|
},
|
|
5778
6112
|
"pricing": {
|
|
5779
|
-
"
|
|
5780
|
-
|
|
6113
|
+
"text_tokens": {
|
|
6114
|
+
"standard": {
|
|
6115
|
+
"input_per_million": 5.0,
|
|
6116
|
+
"output_per_million": 30.0,
|
|
6117
|
+
"cache_read_input_per_million": 0.5
|
|
6118
|
+
}
|
|
6119
|
+
}
|
|
5781
6120
|
}
|
|
5782
6121
|
},
|
|
5783
6122
|
{
|
|
@@ -5798,8 +6137,13 @@
|
|
|
5798
6137
|
]
|
|
5799
6138
|
},
|
|
5800
6139
|
"pricing": {
|
|
5801
|
-
"
|
|
5802
|
-
|
|
6140
|
+
"text_tokens": {
|
|
6141
|
+
"standard": {
|
|
6142
|
+
"input_per_million": 0.1,
|
|
6143
|
+
"output_per_million": 0.3,
|
|
6144
|
+
"cache_read_input_per_million": 0.02
|
|
6145
|
+
}
|
|
6146
|
+
}
|
|
5803
6147
|
}
|
|
5804
6148
|
},
|
|
5805
6149
|
{
|
|
@@ -5820,8 +6164,13 @@
|
|
|
5820
6164
|
]
|
|
5821
6165
|
},
|
|
5822
6166
|
"pricing": {
|
|
5823
|
-
"
|
|
5824
|
-
|
|
6167
|
+
"text_tokens": {
|
|
6168
|
+
"standard": {
|
|
6169
|
+
"input_per_million": 0.2,
|
|
6170
|
+
"output_per_million": 1.15,
|
|
6171
|
+
"cache_read_input_per_million": 0.04
|
|
6172
|
+
}
|
|
6173
|
+
}
|
|
5825
6174
|
}
|
|
5826
6175
|
},
|
|
5827
6176
|
{
|
|
@@ -5842,8 +6191,13 @@
|
|
|
5842
6191
|
]
|
|
5843
6192
|
},
|
|
5844
6193
|
"pricing": {
|
|
5845
|
-
"
|
|
5846
|
-
|
|
6194
|
+
"text_tokens": {
|
|
6195
|
+
"standard": {
|
|
6196
|
+
"input_per_million": 0.14,
|
|
6197
|
+
"output_per_million": 0.58,
|
|
6198
|
+
"cache_read_input_per_million": 0.035
|
|
6199
|
+
}
|
|
6200
|
+
}
|
|
5847
6201
|
}
|
|
5848
6202
|
},
|
|
5849
6203
|
{
|
|
@@ -5864,8 +6218,13 @@
|
|
|
5864
6218
|
]
|
|
5865
6219
|
},
|
|
5866
6220
|
"pricing": {
|
|
5867
|
-
"
|
|
5868
|
-
|
|
6221
|
+
"text_tokens": {
|
|
6222
|
+
"standard": {
|
|
6223
|
+
"input_per_million": 0.834,
|
|
6224
|
+
"output_per_million": 2.501,
|
|
6225
|
+
"cache_read_input_per_million": 0.042
|
|
6226
|
+
}
|
|
6227
|
+
}
|
|
5869
6228
|
}
|
|
5870
6229
|
},
|
|
5871
6230
|
{
|
|
@@ -5886,8 +6245,13 @@
|
|
|
5886
6245
|
]
|
|
5887
6246
|
},
|
|
5888
6247
|
"pricing": {
|
|
5889
|
-
"
|
|
5890
|
-
|
|
6248
|
+
"text_tokens": {
|
|
6249
|
+
"standard": {
|
|
6250
|
+
"input_per_million": 1.0,
|
|
6251
|
+
"output_per_million": 4.05,
|
|
6252
|
+
"cache_read_input_per_million": 0.17
|
|
6253
|
+
}
|
|
6254
|
+
}
|
|
5891
6255
|
}
|
|
5892
6256
|
},
|
|
5893
6257
|
{
|
|
@@ -5908,8 +6272,13 @@
|
|
|
5908
6272
|
]
|
|
5909
6273
|
},
|
|
5910
6274
|
"pricing": {
|
|
5911
|
-
"
|
|
5912
|
-
|
|
6275
|
+
"text_tokens": {
|
|
6276
|
+
"standard": {
|
|
6277
|
+
"input_per_million": 0.5,
|
|
6278
|
+
"output_per_million": 1.2,
|
|
6279
|
+
"cache_read_input_per_million": 0.1
|
|
6280
|
+
}
|
|
6281
|
+
}
|
|
5913
6282
|
}
|
|
5914
6283
|
},
|
|
5915
6284
|
{
|
|
@@ -5930,8 +6299,13 @@
|
|
|
5930
6299
|
]
|
|
5931
6300
|
},
|
|
5932
6301
|
"pricing": {
|
|
5933
|
-
"
|
|
5934
|
-
|
|
6302
|
+
"text_tokens": {
|
|
6303
|
+
"standard": {
|
|
6304
|
+
"input_per_million": 2.0,
|
|
6305
|
+
"output_per_million": 6.0,
|
|
6306
|
+
"cache_read_input_per_million": 0.5
|
|
6307
|
+
}
|
|
6308
|
+
}
|
|
5935
6309
|
}
|
|
5936
6310
|
},
|
|
5937
6311
|
{
|
|
@@ -5952,8 +6326,13 @@
|
|
|
5952
6326
|
]
|
|
5953
6327
|
},
|
|
5954
6328
|
"pricing": {
|
|
5955
|
-
"
|
|
5956
|
-
|
|
6329
|
+
"text_tokens": {
|
|
6330
|
+
"standard": {
|
|
6331
|
+
"input_per_million": 2.0,
|
|
6332
|
+
"output_per_million": 6.0,
|
|
6333
|
+
"cache_read_input_per_million": 0.5
|
|
6334
|
+
}
|
|
6335
|
+
}
|
|
5957
6336
|
}
|
|
5958
6337
|
},
|
|
5959
6338
|
{
|
|
@@ -5974,8 +6353,13 @@
|
|
|
5974
6353
|
]
|
|
5975
6354
|
},
|
|
5976
6355
|
"pricing": {
|
|
5977
|
-
"
|
|
5978
|
-
|
|
6356
|
+
"text_tokens": {
|
|
6357
|
+
"standard": {
|
|
6358
|
+
"input_per_million": 0.14,
|
|
6359
|
+
"output_per_million": 0.28,
|
|
6360
|
+
"cache_read_input_per_million": 0.0028
|
|
6361
|
+
}
|
|
6362
|
+
}
|
|
5979
6363
|
}
|
|
5980
6364
|
},
|
|
5981
6365
|
{
|
|
@@ -5996,8 +6380,13 @@
|
|
|
5996
6380
|
]
|
|
5997
6381
|
},
|
|
5998
6382
|
"pricing": {
|
|
5999
|
-
"
|
|
6000
|
-
|
|
6383
|
+
"text_tokens": {
|
|
6384
|
+
"standard": {
|
|
6385
|
+
"input_per_million": 0.435,
|
|
6386
|
+
"output_per_million": 0.87,
|
|
6387
|
+
"cache_read_input_per_million": 0.0036
|
|
6388
|
+
}
|
|
6389
|
+
}
|
|
6001
6390
|
}
|
|
6002
6391
|
},
|
|
6003
6392
|
{
|
|
@@ -6018,8 +6407,13 @@
|
|
|
6018
6407
|
]
|
|
6019
6408
|
},
|
|
6020
6409
|
"pricing": {
|
|
6021
|
-
"
|
|
6022
|
-
|
|
6410
|
+
"text_tokens": {
|
|
6411
|
+
"standard": {
|
|
6412
|
+
"input_per_million": 0.15,
|
|
6413
|
+
"output_per_million": 0.5,
|
|
6414
|
+
"cache_read_input_per_million": 0.03
|
|
6415
|
+
}
|
|
6416
|
+
}
|
|
6023
6417
|
}
|
|
6024
6418
|
},
|
|
6025
6419
|
{
|
|
@@ -6040,8 +6434,13 @@
|
|
|
6040
6434
|
]
|
|
6041
6435
|
},
|
|
6042
6436
|
"pricing": {
|
|
6043
|
-
"
|
|
6044
|
-
|
|
6437
|
+
"text_tokens": {
|
|
6438
|
+
"standard": {
|
|
6439
|
+
"input_per_million": 1.0,
|
|
6440
|
+
"output_per_million": 3.2,
|
|
6441
|
+
"cache_read_input_per_million": 0.2
|
|
6442
|
+
}
|
|
6443
|
+
}
|
|
6045
6444
|
}
|
|
6046
6445
|
},
|
|
6047
6446
|
{
|
|
@@ -6062,8 +6461,13 @@
|
|
|
6062
6461
|
]
|
|
6063
6462
|
},
|
|
6064
6463
|
"pricing": {
|
|
6065
|
-
"
|
|
6066
|
-
|
|
6464
|
+
"text_tokens": {
|
|
6465
|
+
"standard": {
|
|
6466
|
+
"input_per_million": 1.4,
|
|
6467
|
+
"output_per_million": 4.4,
|
|
6468
|
+
"cache_read_input_per_million": 0.26
|
|
6469
|
+
}
|
|
6470
|
+
}
|
|
6067
6471
|
}
|
|
6068
6472
|
},
|
|
6069
6473
|
{
|
|
@@ -6084,8 +6488,13 @@
|
|
|
6084
6488
|
]
|
|
6085
6489
|
},
|
|
6086
6490
|
"pricing": {
|
|
6087
|
-
"
|
|
6088
|
-
|
|
6491
|
+
"text_tokens": {
|
|
6492
|
+
"standard": {
|
|
6493
|
+
"input_per_million": 1.4,
|
|
6494
|
+
"output_per_million": 4.4,
|
|
6495
|
+
"cache_read_input_per_million": 0.26
|
|
6496
|
+
}
|
|
6497
|
+
}
|
|
6089
6498
|
}
|
|
6090
6499
|
},
|
|
6091
6500
|
{
|
|
@@ -6106,8 +6515,13 @@
|
|
|
6106
6515
|
]
|
|
6107
6516
|
},
|
|
6108
6517
|
"pricing": {
|
|
6109
|
-
"
|
|
6110
|
-
|
|
6518
|
+
"text_tokens": {
|
|
6519
|
+
"standard": {
|
|
6520
|
+
"input_per_million": 3.0,
|
|
6521
|
+
"output_per_million": 10.25,
|
|
6522
|
+
"cache_read_input_per_million": 0.5
|
|
6523
|
+
}
|
|
6524
|
+
}
|
|
6111
6525
|
}
|
|
6112
6526
|
},
|
|
6113
6527
|
{
|
|
@@ -6128,8 +6542,13 @@
|
|
|
6128
6542
|
]
|
|
6129
6543
|
},
|
|
6130
6544
|
"pricing": {
|
|
6131
|
-
"
|
|
6132
|
-
|
|
6545
|
+
"text_tokens": {
|
|
6546
|
+
"standard": {
|
|
6547
|
+
"input_per_million": 1.4,
|
|
6548
|
+
"output_per_million": 4.4,
|
|
6549
|
+
"cache_read_input_per_million": 0.26
|
|
6550
|
+
}
|
|
6551
|
+
}
|
|
6133
6552
|
}
|
|
6134
6553
|
},
|
|
6135
6554
|
{
|
|
@@ -14454,4 +14873,4 @@
|
|
|
14454
14873
|
"pricing": {},
|
|
14455
14874
|
"created_at": "2026-01-28"
|
|
14456
14875
|
}
|
|
14457
|
-
]
|
|
14876
|
+
]
|
data/lib/ask/llm/version.rb
CHANGED
data/lib/ask/provider/openai.rb
CHANGED
|
@@ -425,9 +425,27 @@ module Ask
|
|
|
425
425
|
LLM::HTTP.connection(api_base, headers:, request: { open_timeout: 30, timeout: 600 })
|
|
426
426
|
end
|
|
427
427
|
|
|
428
|
+
# Messages for the wire, minus the agent loop's empty user
|
|
429
|
+
# continuations: after tool calls the loop appends a "" user message
|
|
430
|
+
# to prompt the next turn, which strict OpenAI-compatible gateways
|
|
431
|
+
# reject ("user message must have content"). The message carries no
|
|
432
|
+
# information, so it is dropped here.
|
|
428
433
|
def format_messages(messages)
|
|
429
|
-
messages.
|
|
434
|
+
messages.filter_map do |msg|
|
|
435
|
+
next if empty_user_message?(msg)
|
|
436
|
+
|
|
437
|
+
format_message(msg)
|
|
438
|
+
end
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
def empty_user_message?(message)
|
|
442
|
+
role = message.respond_to?(:role) ? message.role : (message[:role] || message["role"])
|
|
443
|
+
return false unless role.to_s == "user"
|
|
444
|
+
|
|
445
|
+
content = message.respond_to?(:content) ? message.content : (message[:content] || message["content"])
|
|
446
|
+
content.to_s.strip.empty?
|
|
430
447
|
end
|
|
448
|
+
private :empty_user_message?
|
|
431
449
|
|
|
432
450
|
# Transform a generic content block hash into OpenAI's wire format.
|
|
433
451
|
# https://platform.openai.com/docs/guides/vision
|