@yeaft/webchat-agent 0.1.870 → 0.1.871
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/providers/copilot-models.js +16 -6
package/package.json
CHANGED
|
@@ -17,15 +17,25 @@ import { readFile } from 'fs/promises';
|
|
|
17
17
|
import { homedir } from 'os';
|
|
18
18
|
import { join } from 'path';
|
|
19
19
|
|
|
20
|
-
// Curated fallback —
|
|
21
|
-
//
|
|
20
|
+
// Curated fallback — mirrors the CLI's own hardcoded default model list
|
|
21
|
+
// (`jF` in @github/copilot/app.js@1.0.59). Used when /models is unavailable
|
|
22
|
+
// or when org policy hides the picker list at the API (some enterprise orgs
|
|
23
|
+
// gate it). `--model <id>` still accepts these IDs at chat time.
|
|
22
24
|
export const FALLBACK_COPILOT_MODELS = Object.freeze([
|
|
25
|
+
{ id: 'claude-sonnet-4.6', label: 'Claude Sonnet 4.6', vendor: 'Anthropic' },
|
|
23
26
|
{ id: 'claude-sonnet-4.5', label: 'Claude Sonnet 4.5', vendor: 'Anthropic' },
|
|
24
|
-
{ id: 'claude-
|
|
25
|
-
{ id: 'claude-opus-4.
|
|
26
|
-
{ id: '
|
|
27
|
+
{ id: 'claude-haiku-4.5', label: 'Claude Haiku 4.5', vendor: 'Anthropic' },
|
|
28
|
+
{ id: 'claude-opus-4.8', label: 'Claude Opus 4.8', vendor: 'Anthropic' },
|
|
29
|
+
{ id: 'claude-opus-4.7', label: 'Claude Opus 4.7', vendor: 'Anthropic' },
|
|
30
|
+
{ id: 'claude-opus-4.6', label: 'Claude Opus 4.6', vendor: 'Anthropic' },
|
|
31
|
+
{ id: 'claude-opus-4.5', label: 'Claude Opus 4.5', vendor: 'Anthropic' },
|
|
32
|
+
{ id: 'gpt-5.5', label: 'GPT-5.5', vendor: 'OpenAI' },
|
|
33
|
+
{ id: 'gpt-5.4', label: 'GPT-5.4', vendor: 'OpenAI' },
|
|
34
|
+
{ id: 'gpt-5.3-codex', label: 'GPT-5.3 Codex', vendor: 'OpenAI' },
|
|
35
|
+
{ id: 'gpt-5.2-codex', label: 'GPT-5.2 Codex', vendor: 'OpenAI' },
|
|
36
|
+
{ id: 'gpt-5.2', label: 'GPT-5.2', vendor: 'OpenAI' },
|
|
37
|
+
{ id: 'gpt-5.4-mini', label: 'GPT-5.4 Mini', vendor: 'OpenAI' },
|
|
27
38
|
{ id: 'gpt-5-mini', label: 'GPT-5 Mini', vendor: 'OpenAI' },
|
|
28
|
-
{ id: 'gpt-4.1', label: 'GPT-4.1', vendor: 'OpenAI' },
|
|
29
39
|
{ id: 'gemini-2.5-pro', label: 'Gemini 2.5 Pro', vendor: 'Google' },
|
|
30
40
|
]);
|
|
31
41
|
|