Elffuss BraidHub

kikocis/continue public

main · 3.3 KiBRawPermalink
1import { ModelProvider } from "../types.js";
2
3export const Anthropic: ModelProvider = {
4 id: "anthropic",
5 displayName: "Anthropic",
6 models: [
7 {
8 model: "claude-sonnet-4-20250514",
9 displayName: "Claude 4 Sonnet",
10 contextLength: 200000,
11 maxCompletionTokens: 8192,
12 description:
13 "Most intelligent model with the highest level of intelligence and capability.",
14 // Sometimes written as claude-4-sonnet, other times as claude-sonnet-4
15 regex: /claude-(?:4-sonnet|sonnet-4).*/i,
16 recommendedFor: ["chat"],
17 },
18 {
19 model: "claude-opus-4-20250514",
20 displayName: "Claude 4 Opus",
21 contextLength: 200000,
22 maxCompletionTokens: 8192,
23 description:
24 "Most intelligent model with the highest level of intelligence and capability.",
25 regex: /claude-(?:4-opus|opus-4).*/i,
26 recommendedFor: ["chat"],
27 },
28 {
29 model: "claude-3-5-sonnet-latest",
30 displayName: "Claude 3.5 Sonnet",
31 contextLength: 200000,
32 maxCompletionTokens: 8192,
33 description:
34 "Most intelligent model with the highest level of intelligence and capability.",
35 regex: /claude-3[.-]5-sonnet.*/i,
36 recommendedFor: ["chat"],
37 },
38 {
39 model: "claude-3-7-sonnet-latest",
40 displayName: "Claude 3.7 Sonnet",
41 contextLength: 200000,
42 maxCompletionTokens: 8192,
43 description:
44 "Most intelligent model with the highest level of intelligence and capability.",
45 regex: /claude-3[.-]7-sonnet.*/i,
46 recommendedFor: ["chat"],
47 },
48 {
49 model: "claude-3-opus-20240229",
50 displayName: "Claude 3 Opus",
51 contextLength: 200000,
52 maxCompletionTokens: 4096,
53 description:
54 "Powerful model for highly complex tasks with top-level performance, intelligence, fluency, and understanding.",
55 regex: /claude-3-opus/i,
56 },
57 {
58 model: "claude-3-sonnet-20240229",
59 displayName: "Claude 3 Sonnet",
60 contextLength: 200000,
61 maxCompletionTokens: 4096,
62 description:
63 "Balance of intelligence and speed with strong utility, balanced for scaled deployments.",
64 regex: /claude-3-sonnet/i,
65 },
66 {
67 model: "claude-3-haiku-20240307",
68 displayName: "Claude 3 Haiku",
69 contextLength: 200000,
70 maxCompletionTokens: 4096,
71 description:
72 "Fastest and most compact model for near-instant responsiveness with quick and accurate targeted performance.",
73 regex: /claude-3-haiku/i,
74 },
75 {
76 model: "claude-2.1",
77 displayName: "Claude 2.1",
78 contextLength: 200000,
79 maxCompletionTokens: 4096,
80 description:
81 "Updated version of Claude 2 with improved accuracy and consistency.",
82 regex: /claude-2\.1/i,
83 },
84 {
85 model: "claude-2.0",
86 displayName: "Claude 2",
87 contextLength: 100000,
88 maxCompletionTokens: 4096,
89 description:
90 "Predecessor to Claude 3, offering strong all-round performance.",
91 regex: /claude-2\.0/i,
92 },
93 {
94 model: "claude-instant-1.2",
95 displayName: "Claude Instant 1.2",
96 contextLength: 100000,
97 maxCompletionTokens: 4096,
98 description:
99 "Our cheapest small and fast model, a predecessor of Claude Haiku.",
100 regex: /claude-instant-1\.2/i,
101 },
102 ],
103};