Skip to content

Commit 5ed5136

Browse files
docs(examples): bump model to claude-2 in example scripts (#57)
1 parent f388468 commit 5ed5136

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/cancellation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async function main() {
1717

1818
const stream = await client.completions.create({
1919
prompt: `${Anthropic.HUMAN_PROMPT}${question}${Anthropic.AI_PROMPT}:`,
20-
model: 'claude-v1',
20+
model: 'claude-2',
2121
stream: true,
2222
max_tokens_to_sample: 500,
2323
});

examples/demo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const client = new Anthropic(); // gets API Key from environment variable ANTHRO
77
async function main() {
88
const result = await client.completions.create({
99
prompt: `${Anthropic.HUMAN_PROMPT} how does a court case get to the Supreme Court? ${Anthropic.AI_PROMPT}`,
10-
model: 'claude-v1.3',
10+
model: 'claude-2',
1111
max_tokens_to_sample: 300,
1212
});
1313
console.log(result.completion);

examples/streaming.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ async function main() {
99

1010
const stream = await client.completions.create({
1111
prompt: `${Anthropic.HUMAN_PROMPT}${question}${Anthropic.AI_PROMPT}:`,
12-
model: 'claude-v1',
12+
model: 'claude-2',
1313
stream: true,
1414
max_tokens_to_sample: 500,
1515
});

0 commit comments

Comments
 (0)