@oh-my-pi/pi-ai 14.0.4 → 14.1.0
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/CHANGELOG.md +30 -1
- package/package.json +2 -2
- package/src/auth-storage.ts +8 -2
- package/src/models.json +49 -124
- package/src/provider-models/openai-compat.ts +18 -25
- package/src/providers/anthropic.ts +6 -3
- package/src/providers/github-copilot-headers.ts +5 -3
- package/src/providers/openai-codex-responses.ts +1 -1
- package/src/providers/openai-completions.ts +10 -5
- package/src/providers/openai-responses-shared.ts +1 -1
- package/src/providers/openai-responses.ts +6 -2
- package/src/providers/transform-messages.ts +4 -1
- package/src/usage/github-copilot.ts +2 -8
- package/src/usage/openai-codex.ts +12 -12
- package/src/utils/http-inspector.ts +20 -0
- package/src/utils/idle-iterator.ts +1 -1
- package/src/utils/oauth/github-copilot.ts +94 -81
- package/src/utils/oauth/index.ts +6 -4
- package/src/utils.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [14.1.0] - 2026-04-11
|
|
6
|
+
### Added
|
|
7
|
+
|
|
8
|
+
- Added `accountId` to usage report metadata
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Changed usage parsing to emit a usage report with available fields when parsing fails, rather than returning null
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Fixed `planType` resolution to fall back to the raw payload `plan_type` when parsed value is absent
|
|
17
|
+
- Fixed usage metadata `raw` fallback to preserve the original payload when parsed raw output is missing
|
|
18
|
+
|
|
19
|
+
## [14.0.5] - 2026-04-11
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
- Replaced GitHub Copilot authentication from VSCode extension impersonation to the opencode OAuth flow, eliminating TOS concerns. Existing users will need to re-authenticate once with `/login github-copilot`.
|
|
23
|
+
- Simplified Copilot token handling: GitHub OAuth token is used directly for all API requests (no JWT exchange or refresh cycle).
|
|
24
|
+
- Changed GitHub Copilot API base URL from `api.individual.githubcopilot.com` to `api.githubcopilot.com`.
|
|
25
|
+
- Updated default OpenAI stream idle timeout to 120,000 milliseconds to keep stream generation alive longer
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
|
|
29
|
+
- Fixed duplicate synthetic tool results being generated when a real tool result appears later in message history
|
|
30
|
+
- Fixed GitHub Copilot `/models` discovery to unwrap structured OAuth credentials before sending the bearer token, preserving dynamic catalog refresh for OAuth-backed callers.
|
|
31
|
+
|
|
32
|
+
### Removed
|
|
33
|
+
- Removed Copilot JWT proxy-ep base URL resolution (no longer needed with opencode auth).
|
|
5
34
|
## [14.0.3] - 2026-04-09
|
|
6
35
|
|
|
7
36
|
### Fixed
|
|
@@ -1994,4 +2023,4 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
1994
2023
|
|
|
1995
2024
|
## [0.9.4] - 2025-11-26
|
|
1996
2025
|
|
|
1997
|
-
Initial release with multi-provider LLM support.
|
|
2026
|
+
Initial release with multi-provider LLM support.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@oh-my-pi/pi-ai",
|
|
4
|
-
"version": "14.0
|
|
4
|
+
"version": "14.1.0",
|
|
5
5
|
"description": "Unified LLM API with automatic model discovery and provider configuration",
|
|
6
6
|
"homepage": "https://github.com/can1357/oh-my-pi",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@aws-sdk/client-bedrock-runtime": "^3",
|
|
46
46
|
"@bufbuild/protobuf": "^2.11",
|
|
47
47
|
"@google/genai": "^1.43",
|
|
48
|
-
"@oh-my-pi/pi-utils": "14.0
|
|
48
|
+
"@oh-my-pi/pi-utils": "14.1.0",
|
|
49
49
|
"@sinclair/typebox": "^0.34",
|
|
50
50
|
"@smithy/node-http-handler": "^4.4",
|
|
51
51
|
"ajv": "^8.18",
|
package/src/auth-storage.ts
CHANGED
|
@@ -1882,8 +1882,8 @@ export class AuthStorage {
|
|
|
1882
1882
|
/**
|
|
1883
1883
|
* Peek at API key for a provider without refreshing OAuth tokens.
|
|
1884
1884
|
* Used for model discovery where we only need to know if credentials exist
|
|
1885
|
-
* and get a best-effort token.
|
|
1886
|
-
*
|
|
1885
|
+
* and get a best-effort token. For GitHub Copilot we preserve enterprise
|
|
1886
|
+
* routing metadata so discovery can hit the correct host.
|
|
1887
1887
|
*/
|
|
1888
1888
|
async peekApiKey(provider: string): Promise<string | undefined> {
|
|
1889
1889
|
const runtimeKey = this.#runtimeOverrides.get(provider);
|
|
@@ -1901,6 +1901,12 @@ export class AuthStorage {
|
|
|
1901
1901
|
if (oauthSelection) {
|
|
1902
1902
|
const expiresAt = oauthSelection.credential.expires;
|
|
1903
1903
|
if (Number.isFinite(expiresAt) && expiresAt > Date.now()) {
|
|
1904
|
+
if (provider === "github-copilot") {
|
|
1905
|
+
return JSON.stringify({
|
|
1906
|
+
token: oauthSelection.credential.access,
|
|
1907
|
+
enterpriseUrl: oauthSelection.credential.enterpriseUrl,
|
|
1908
|
+
});
|
|
1909
|
+
}
|
|
1904
1910
|
return oauthSelection.credential.access;
|
|
1905
1911
|
}
|
|
1906
1912
|
}
|
package/src/models.json
CHANGED
|
@@ -4582,7 +4582,7 @@
|
|
|
4582
4582
|
"name": "Claude Haiku 4.5",
|
|
4583
4583
|
"api": "anthropic-messages",
|
|
4584
4584
|
"provider": "github-copilot",
|
|
4585
|
-
"baseUrl": "https://api.
|
|
4585
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
4586
4586
|
"reasoning": true,
|
|
4587
4587
|
"input": [
|
|
4588
4588
|
"text",
|
|
@@ -4597,10 +4597,7 @@
|
|
|
4597
4597
|
"contextWindow": 144000,
|
|
4598
4598
|
"maxTokens": 32000,
|
|
4599
4599
|
"headers": {
|
|
4600
|
-
"User-Agent": "
|
|
4601
|
-
"Editor-Version": "vscode/1.107.0",
|
|
4602
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
4603
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
4600
|
+
"User-Agent": "opencode/1.3.15"
|
|
4604
4601
|
},
|
|
4605
4602
|
"premiumMultiplier": 0.33,
|
|
4606
4603
|
"thinking": {
|
|
@@ -4614,7 +4611,7 @@
|
|
|
4614
4611
|
"name": "Claude Opus 4.5",
|
|
4615
4612
|
"api": "anthropic-messages",
|
|
4616
4613
|
"provider": "github-copilot",
|
|
4617
|
-
"baseUrl": "https://api.
|
|
4614
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
4618
4615
|
"reasoning": true,
|
|
4619
4616
|
"input": [
|
|
4620
4617
|
"text",
|
|
@@ -4629,10 +4626,7 @@
|
|
|
4629
4626
|
"contextWindow": 160000,
|
|
4630
4627
|
"maxTokens": 32000,
|
|
4631
4628
|
"headers": {
|
|
4632
|
-
"User-Agent": "
|
|
4633
|
-
"Editor-Version": "vscode/1.107.0",
|
|
4634
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
4635
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
4629
|
+
"User-Agent": "opencode/1.3.15"
|
|
4636
4630
|
},
|
|
4637
4631
|
"thinking": {
|
|
4638
4632
|
"mode": "anthropic-budget-effort",
|
|
@@ -4645,7 +4639,7 @@
|
|
|
4645
4639
|
"name": "Claude Opus 4.6",
|
|
4646
4640
|
"api": "anthropic-messages",
|
|
4647
4641
|
"provider": "github-copilot",
|
|
4648
|
-
"baseUrl": "https://api.
|
|
4642
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
4649
4643
|
"reasoning": true,
|
|
4650
4644
|
"input": [
|
|
4651
4645
|
"text",
|
|
@@ -4660,10 +4654,7 @@
|
|
|
4660
4654
|
"contextWindow": 1000000,
|
|
4661
4655
|
"maxTokens": 64000,
|
|
4662
4656
|
"headers": {
|
|
4663
|
-
"User-Agent": "
|
|
4664
|
-
"Editor-Version": "vscode/1.107.0",
|
|
4665
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
4666
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
4657
|
+
"User-Agent": "opencode/1.3.15"
|
|
4667
4658
|
},
|
|
4668
4659
|
"premiumMultiplier": 3,
|
|
4669
4660
|
"thinking": {
|
|
@@ -4677,7 +4668,7 @@
|
|
|
4677
4668
|
"name": "Claude Sonnet 4",
|
|
4678
4669
|
"api": "anthropic-messages",
|
|
4679
4670
|
"provider": "github-copilot",
|
|
4680
|
-
"baseUrl": "https://api.
|
|
4671
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
4681
4672
|
"reasoning": true,
|
|
4682
4673
|
"input": [
|
|
4683
4674
|
"text",
|
|
@@ -4692,10 +4683,7 @@
|
|
|
4692
4683
|
"contextWindow": 216000,
|
|
4693
4684
|
"maxTokens": 16000,
|
|
4694
4685
|
"headers": {
|
|
4695
|
-
"User-Agent": "
|
|
4696
|
-
"Editor-Version": "vscode/1.107.0",
|
|
4697
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
4698
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
4686
|
+
"User-Agent": "opencode/1.3.15"
|
|
4699
4687
|
},
|
|
4700
4688
|
"thinking": {
|
|
4701
4689
|
"mode": "budget",
|
|
@@ -4708,7 +4696,7 @@
|
|
|
4708
4696
|
"name": "Claude Sonnet 4.5",
|
|
4709
4697
|
"api": "anthropic-messages",
|
|
4710
4698
|
"provider": "github-copilot",
|
|
4711
|
-
"baseUrl": "https://api.
|
|
4699
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
4712
4700
|
"reasoning": true,
|
|
4713
4701
|
"input": [
|
|
4714
4702
|
"text",
|
|
@@ -4723,10 +4711,7 @@
|
|
|
4723
4711
|
"contextWindow": 144000,
|
|
4724
4712
|
"maxTokens": 32000,
|
|
4725
4713
|
"headers": {
|
|
4726
|
-
"User-Agent": "
|
|
4727
|
-
"Editor-Version": "vscode/1.107.0",
|
|
4728
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
4729
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
4714
|
+
"User-Agent": "opencode/1.3.15"
|
|
4730
4715
|
},
|
|
4731
4716
|
"thinking": {
|
|
4732
4717
|
"mode": "anthropic-budget-effort",
|
|
@@ -4739,7 +4724,7 @@
|
|
|
4739
4724
|
"name": "Claude Sonnet 4.6",
|
|
4740
4725
|
"api": "anthropic-messages",
|
|
4741
4726
|
"provider": "github-copilot",
|
|
4742
|
-
"baseUrl": "https://api.
|
|
4727
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
4743
4728
|
"reasoning": true,
|
|
4744
4729
|
"input": [
|
|
4745
4730
|
"text",
|
|
@@ -4754,10 +4739,7 @@
|
|
|
4754
4739
|
"contextWindow": 200000,
|
|
4755
4740
|
"maxTokens": 32000,
|
|
4756
4741
|
"headers": {
|
|
4757
|
-
"User-Agent": "
|
|
4758
|
-
"Editor-Version": "vscode/1.107.0",
|
|
4759
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
4760
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
4742
|
+
"User-Agent": "opencode/1.3.15"
|
|
4761
4743
|
},
|
|
4762
4744
|
"thinking": {
|
|
4763
4745
|
"mode": "anthropic-adaptive",
|
|
@@ -4770,7 +4752,7 @@
|
|
|
4770
4752
|
"name": "Gemini 2.5 Pro",
|
|
4771
4753
|
"api": "openai-completions",
|
|
4772
4754
|
"provider": "github-copilot",
|
|
4773
|
-
"baseUrl": "https://api.
|
|
4755
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
4774
4756
|
"reasoning": false,
|
|
4775
4757
|
"input": [
|
|
4776
4758
|
"text",
|
|
@@ -4785,10 +4767,7 @@
|
|
|
4785
4767
|
"contextWindow": 128000,
|
|
4786
4768
|
"maxTokens": 64000,
|
|
4787
4769
|
"headers": {
|
|
4788
|
-
"User-Agent": "
|
|
4789
|
-
"Editor-Version": "vscode/1.107.0",
|
|
4790
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
4791
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
4770
|
+
"User-Agent": "opencode/1.3.15"
|
|
4792
4771
|
},
|
|
4793
4772
|
"compat": {
|
|
4794
4773
|
"supportsStore": false,
|
|
@@ -4801,7 +4780,7 @@
|
|
|
4801
4780
|
"name": "Gemini 3 Flash",
|
|
4802
4781
|
"api": "openai-completions",
|
|
4803
4782
|
"provider": "github-copilot",
|
|
4804
|
-
"baseUrl": "https://api.
|
|
4783
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
4805
4784
|
"reasoning": true,
|
|
4806
4785
|
"input": [
|
|
4807
4786
|
"text",
|
|
@@ -4816,10 +4795,7 @@
|
|
|
4816
4795
|
"contextWindow": 128000,
|
|
4817
4796
|
"maxTokens": 64000,
|
|
4818
4797
|
"headers": {
|
|
4819
|
-
"User-Agent": "
|
|
4820
|
-
"Editor-Version": "vscode/1.107.0",
|
|
4821
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
4822
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
4798
|
+
"User-Agent": "opencode/1.3.15"
|
|
4823
4799
|
},
|
|
4824
4800
|
"compat": {
|
|
4825
4801
|
"supportsStore": false,
|
|
@@ -4837,7 +4813,7 @@
|
|
|
4837
4813
|
"name": "Gemini 3 Pro Preview",
|
|
4838
4814
|
"api": "openai-completions",
|
|
4839
4815
|
"provider": "github-copilot",
|
|
4840
|
-
"baseUrl": "https://api.
|
|
4816
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
4841
4817
|
"reasoning": true,
|
|
4842
4818
|
"input": [
|
|
4843
4819
|
"text",
|
|
@@ -4852,10 +4828,7 @@
|
|
|
4852
4828
|
"contextWindow": 128000,
|
|
4853
4829
|
"maxTokens": 64000,
|
|
4854
4830
|
"headers": {
|
|
4855
|
-
"User-Agent": "
|
|
4856
|
-
"Editor-Version": "vscode/1.107.0",
|
|
4857
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
4858
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
4831
|
+
"User-Agent": "opencode/1.3.15"
|
|
4859
4832
|
},
|
|
4860
4833
|
"compat": {
|
|
4861
4834
|
"supportsStore": false,
|
|
@@ -4873,7 +4846,7 @@
|
|
|
4873
4846
|
"name": "Gemini 3.1 Pro Preview",
|
|
4874
4847
|
"api": "openai-completions",
|
|
4875
4848
|
"provider": "github-copilot",
|
|
4876
|
-
"baseUrl": "https://api.
|
|
4849
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
4877
4850
|
"reasoning": true,
|
|
4878
4851
|
"input": [
|
|
4879
4852
|
"text",
|
|
@@ -4888,10 +4861,7 @@
|
|
|
4888
4861
|
"contextWindow": 128000,
|
|
4889
4862
|
"maxTokens": 64000,
|
|
4890
4863
|
"headers": {
|
|
4891
|
-
"User-Agent": "
|
|
4892
|
-
"Editor-Version": "vscode/1.107.0",
|
|
4893
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
4894
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
4864
|
+
"User-Agent": "opencode/1.3.15"
|
|
4895
4865
|
},
|
|
4896
4866
|
"compat": {
|
|
4897
4867
|
"supportsStore": false,
|
|
@@ -4909,7 +4879,7 @@
|
|
|
4909
4879
|
"name": "GPT-4.1",
|
|
4910
4880
|
"api": "openai-completions",
|
|
4911
4881
|
"provider": "github-copilot",
|
|
4912
|
-
"baseUrl": "https://api.
|
|
4882
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
4913
4883
|
"reasoning": false,
|
|
4914
4884
|
"input": [
|
|
4915
4885
|
"text",
|
|
@@ -4924,10 +4894,7 @@
|
|
|
4924
4894
|
"contextWindow": 128000,
|
|
4925
4895
|
"maxTokens": 16384,
|
|
4926
4896
|
"headers": {
|
|
4927
|
-
"User-Agent": "
|
|
4928
|
-
"Editor-Version": "vscode/1.107.0",
|
|
4929
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
4930
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
4897
|
+
"User-Agent": "opencode/1.3.15"
|
|
4931
4898
|
},
|
|
4932
4899
|
"compat": {
|
|
4933
4900
|
"supportsStore": false,
|
|
@@ -4940,7 +4907,7 @@
|
|
|
4940
4907
|
"name": "GPT-4o",
|
|
4941
4908
|
"api": "openai-completions",
|
|
4942
4909
|
"provider": "github-copilot",
|
|
4943
|
-
"baseUrl": "https://api.
|
|
4910
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
4944
4911
|
"reasoning": false,
|
|
4945
4912
|
"input": [
|
|
4946
4913
|
"text",
|
|
@@ -4955,10 +4922,7 @@
|
|
|
4955
4922
|
"contextWindow": 128000,
|
|
4956
4923
|
"maxTokens": 4096,
|
|
4957
4924
|
"headers": {
|
|
4958
|
-
"User-Agent": "
|
|
4959
|
-
"Editor-Version": "vscode/1.107.0",
|
|
4960
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
4961
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
4925
|
+
"User-Agent": "opencode/1.3.15"
|
|
4962
4926
|
},
|
|
4963
4927
|
"compat": {
|
|
4964
4928
|
"supportsStore": false,
|
|
@@ -4972,7 +4936,7 @@
|
|
|
4972
4936
|
"name": "GPT-5",
|
|
4973
4937
|
"api": "openai-responses",
|
|
4974
4938
|
"provider": "github-copilot",
|
|
4975
|
-
"baseUrl": "https://api.
|
|
4939
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
4976
4940
|
"reasoning": true,
|
|
4977
4941
|
"input": [
|
|
4978
4942
|
"text",
|
|
@@ -4987,10 +4951,7 @@
|
|
|
4987
4951
|
"contextWindow": 128000,
|
|
4988
4952
|
"maxTokens": 128000,
|
|
4989
4953
|
"headers": {
|
|
4990
|
-
"User-Agent": "
|
|
4991
|
-
"Editor-Version": "vscode/1.107.0",
|
|
4992
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
4993
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
4954
|
+
"User-Agent": "opencode/1.3.15"
|
|
4994
4955
|
},
|
|
4995
4956
|
"thinking": {
|
|
4996
4957
|
"mode": "effort",
|
|
@@ -5003,7 +4964,7 @@
|
|
|
5003
4964
|
"name": "GPT-5-mini",
|
|
5004
4965
|
"api": "openai-responses",
|
|
5005
4966
|
"provider": "github-copilot",
|
|
5006
|
-
"baseUrl": "https://api.
|
|
4967
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
5007
4968
|
"reasoning": true,
|
|
5008
4969
|
"input": [
|
|
5009
4970
|
"text",
|
|
@@ -5018,10 +4979,7 @@
|
|
|
5018
4979
|
"contextWindow": 264000,
|
|
5019
4980
|
"maxTokens": 64000,
|
|
5020
4981
|
"headers": {
|
|
5021
|
-
"User-Agent": "
|
|
5022
|
-
"Editor-Version": "vscode/1.107.0",
|
|
5023
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
5024
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
4982
|
+
"User-Agent": "opencode/1.3.15"
|
|
5025
4983
|
},
|
|
5026
4984
|
"thinking": {
|
|
5027
4985
|
"mode": "effort",
|
|
@@ -5034,7 +4992,7 @@
|
|
|
5034
4992
|
"name": "GPT-5.1",
|
|
5035
4993
|
"api": "openai-responses",
|
|
5036
4994
|
"provider": "github-copilot",
|
|
5037
|
-
"baseUrl": "https://api.
|
|
4995
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
5038
4996
|
"reasoning": true,
|
|
5039
4997
|
"input": [
|
|
5040
4998
|
"text",
|
|
@@ -5049,10 +5007,7 @@
|
|
|
5049
5007
|
"contextWindow": 264000,
|
|
5050
5008
|
"maxTokens": 64000,
|
|
5051
5009
|
"headers": {
|
|
5052
|
-
"User-Agent": "
|
|
5053
|
-
"Editor-Version": "vscode/1.107.0",
|
|
5054
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
5055
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
5010
|
+
"User-Agent": "opencode/1.3.15"
|
|
5056
5011
|
},
|
|
5057
5012
|
"thinking": {
|
|
5058
5013
|
"mode": "effort",
|
|
@@ -5065,7 +5020,7 @@
|
|
|
5065
5020
|
"name": "GPT-5.1-Codex",
|
|
5066
5021
|
"api": "openai-responses",
|
|
5067
5022
|
"provider": "github-copilot",
|
|
5068
|
-
"baseUrl": "https://api.
|
|
5023
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
5069
5024
|
"reasoning": true,
|
|
5070
5025
|
"input": [
|
|
5071
5026
|
"text",
|
|
@@ -5080,10 +5035,7 @@
|
|
|
5080
5035
|
"contextWindow": 272000,
|
|
5081
5036
|
"maxTokens": 128000,
|
|
5082
5037
|
"headers": {
|
|
5083
|
-
"User-Agent": "
|
|
5084
|
-
"Editor-Version": "vscode/1.107.0",
|
|
5085
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
5086
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
5038
|
+
"User-Agent": "opencode/1.3.15"
|
|
5087
5039
|
},
|
|
5088
5040
|
"thinking": {
|
|
5089
5041
|
"mode": "effort",
|
|
@@ -5096,7 +5048,7 @@
|
|
|
5096
5048
|
"name": "GPT-5.1-Codex-max",
|
|
5097
5049
|
"api": "openai-responses",
|
|
5098
5050
|
"provider": "github-copilot",
|
|
5099
|
-
"baseUrl": "https://api.
|
|
5051
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
5100
5052
|
"reasoning": true,
|
|
5101
5053
|
"input": [
|
|
5102
5054
|
"text",
|
|
@@ -5111,10 +5063,7 @@
|
|
|
5111
5063
|
"contextWindow": 272000,
|
|
5112
5064
|
"maxTokens": 128000,
|
|
5113
5065
|
"headers": {
|
|
5114
|
-
"User-Agent": "
|
|
5115
|
-
"Editor-Version": "vscode/1.107.0",
|
|
5116
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
5117
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
5066
|
+
"User-Agent": "opencode/1.3.15"
|
|
5118
5067
|
},
|
|
5119
5068
|
"thinking": {
|
|
5120
5069
|
"mode": "effort",
|
|
@@ -5127,7 +5076,7 @@
|
|
|
5127
5076
|
"name": "GPT-5.1-Codex-mini",
|
|
5128
5077
|
"api": "openai-responses",
|
|
5129
5078
|
"provider": "github-copilot",
|
|
5130
|
-
"baseUrl": "https://api.
|
|
5079
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
5131
5080
|
"reasoning": true,
|
|
5132
5081
|
"input": [
|
|
5133
5082
|
"text",
|
|
@@ -5142,10 +5091,7 @@
|
|
|
5142
5091
|
"contextWindow": 272000,
|
|
5143
5092
|
"maxTokens": 128000,
|
|
5144
5093
|
"headers": {
|
|
5145
|
-
"User-Agent": "
|
|
5146
|
-
"Editor-Version": "vscode/1.107.0",
|
|
5147
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
5148
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
5094
|
+
"User-Agent": "opencode/1.3.15"
|
|
5149
5095
|
},
|
|
5150
5096
|
"thinking": {
|
|
5151
5097
|
"mode": "effort",
|
|
@@ -5158,7 +5104,7 @@
|
|
|
5158
5104
|
"name": "GPT-5.2",
|
|
5159
5105
|
"api": "openai-responses",
|
|
5160
5106
|
"provider": "github-copilot",
|
|
5161
|
-
"baseUrl": "https://api.
|
|
5107
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
5162
5108
|
"reasoning": true,
|
|
5163
5109
|
"input": [
|
|
5164
5110
|
"text",
|
|
@@ -5173,10 +5119,7 @@
|
|
|
5173
5119
|
"contextWindow": 264000,
|
|
5174
5120
|
"maxTokens": 64000,
|
|
5175
5121
|
"headers": {
|
|
5176
|
-
"User-Agent": "
|
|
5177
|
-
"Editor-Version": "vscode/1.107.0",
|
|
5178
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
5179
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
5122
|
+
"User-Agent": "opencode/1.3.15"
|
|
5180
5123
|
},
|
|
5181
5124
|
"thinking": {
|
|
5182
5125
|
"mode": "effort",
|
|
@@ -5189,7 +5132,7 @@
|
|
|
5189
5132
|
"name": "GPT-5.2-Codex",
|
|
5190
5133
|
"api": "openai-responses",
|
|
5191
5134
|
"provider": "github-copilot",
|
|
5192
|
-
"baseUrl": "https://api.
|
|
5135
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
5193
5136
|
"reasoning": true,
|
|
5194
5137
|
"input": [
|
|
5195
5138
|
"text",
|
|
@@ -5204,10 +5147,7 @@
|
|
|
5204
5147
|
"contextWindow": 272000,
|
|
5205
5148
|
"maxTokens": 128000,
|
|
5206
5149
|
"headers": {
|
|
5207
|
-
"User-Agent": "
|
|
5208
|
-
"Editor-Version": "vscode/1.107.0",
|
|
5209
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
5210
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
5150
|
+
"User-Agent": "opencode/1.3.15"
|
|
5211
5151
|
},
|
|
5212
5152
|
"thinking": {
|
|
5213
5153
|
"mode": "effort",
|
|
@@ -5220,7 +5160,7 @@
|
|
|
5220
5160
|
"name": "GPT-5.3-Codex",
|
|
5221
5161
|
"api": "openai-responses",
|
|
5222
5162
|
"provider": "github-copilot",
|
|
5223
|
-
"baseUrl": "https://api.
|
|
5163
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
5224
5164
|
"reasoning": true,
|
|
5225
5165
|
"input": [
|
|
5226
5166
|
"text",
|
|
@@ -5235,10 +5175,7 @@
|
|
|
5235
5175
|
"contextWindow": 272000,
|
|
5236
5176
|
"maxTokens": 128000,
|
|
5237
5177
|
"headers": {
|
|
5238
|
-
"User-Agent": "
|
|
5239
|
-
"Editor-Version": "vscode/1.107.0",
|
|
5240
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
5241
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
5178
|
+
"User-Agent": "opencode/1.3.15"
|
|
5242
5179
|
},
|
|
5243
5180
|
"thinking": {
|
|
5244
5181
|
"mode": "effort",
|
|
@@ -5251,7 +5188,7 @@
|
|
|
5251
5188
|
"name": "GPT-5.4",
|
|
5252
5189
|
"api": "openai-responses",
|
|
5253
5190
|
"provider": "github-copilot",
|
|
5254
|
-
"baseUrl": "https://api.
|
|
5191
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
5255
5192
|
"reasoning": true,
|
|
5256
5193
|
"input": [
|
|
5257
5194
|
"text",
|
|
@@ -5266,10 +5203,7 @@
|
|
|
5266
5203
|
"contextWindow": 400000,
|
|
5267
5204
|
"maxTokens": 128000,
|
|
5268
5205
|
"headers": {
|
|
5269
|
-
"User-Agent": "
|
|
5270
|
-
"Editor-Version": "vscode/1.107.0",
|
|
5271
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
5272
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
5206
|
+
"User-Agent": "opencode/1.3.15"
|
|
5273
5207
|
},
|
|
5274
5208
|
"thinking": {
|
|
5275
5209
|
"mode": "effort",
|
|
@@ -5282,7 +5216,7 @@
|
|
|
5282
5216
|
"name": "GPT-5.4 Mini",
|
|
5283
5217
|
"api": "openai-responses",
|
|
5284
5218
|
"provider": "github-copilot",
|
|
5285
|
-
"baseUrl": "https://api.
|
|
5219
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
5286
5220
|
"reasoning": true,
|
|
5287
5221
|
"input": [
|
|
5288
5222
|
"text",
|
|
@@ -5297,10 +5231,7 @@
|
|
|
5297
5231
|
"contextWindow": 400000,
|
|
5298
5232
|
"maxTokens": 128000,
|
|
5299
5233
|
"headers": {
|
|
5300
|
-
"User-Agent": "
|
|
5301
|
-
"Editor-Version": "vscode/1.107.0",
|
|
5302
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
5303
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
5234
|
+
"User-Agent": "opencode/1.3.15"
|
|
5304
5235
|
},
|
|
5305
5236
|
"premiumMultiplier": 0.33,
|
|
5306
5237
|
"thinking": {
|
|
@@ -5314,7 +5245,7 @@
|
|
|
5314
5245
|
"name": "Grok Code Fast 1",
|
|
5315
5246
|
"api": "openai-completions",
|
|
5316
5247
|
"provider": "github-copilot",
|
|
5317
|
-
"baseUrl": "https://api.
|
|
5248
|
+
"baseUrl": "https://api.githubcopilot.com",
|
|
5318
5249
|
"reasoning": true,
|
|
5319
5250
|
"input": [
|
|
5320
5251
|
"text"
|
|
@@ -5328,10 +5259,7 @@
|
|
|
5328
5259
|
"contextWindow": 128000,
|
|
5329
5260
|
"maxTokens": 64000,
|
|
5330
5261
|
"headers": {
|
|
5331
|
-
"User-Agent": "
|
|
5332
|
-
"Editor-Version": "vscode/1.107.0",
|
|
5333
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
5334
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
5262
|
+
"User-Agent": "opencode/1.3.15"
|
|
5335
5263
|
},
|
|
5336
5264
|
"compat": {
|
|
5337
5265
|
"supportsStore": false,
|
|
@@ -21292,10 +21220,7 @@
|
|
|
21292
21220
|
"contextWindow": 1048576,
|
|
21293
21221
|
"maxTokens": 65536,
|
|
21294
21222
|
"headers": {
|
|
21295
|
-
"User-Agent": "
|
|
21296
|
-
"Editor-Version": "vscode/1.107.0",
|
|
21297
|
-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
|
|
21298
|
-
"Copilot-Integration-Id": "vscode-chat"
|
|
21223
|
+
"User-Agent": "opencode/1.3.15"
|
|
21299
21224
|
},
|
|
21300
21225
|
"compat": {
|
|
21301
21226
|
"supportsStore": false,
|