diff --git a/examples/cancellation.ts b/examples/cancellation.ts index 896ec4e7..93c2737a 100755 --- a/examples/cancellation.ts +++ b/examples/cancellation.ts @@ -17,7 +17,7 @@ async function main() { const stream = await client.completions.create({ prompt: `${Anthropic.HUMAN_PROMPT}${question}${Anthropic.AI_PROMPT}:`, - model: 'claude-v1', + model: 'claude-2', stream: true, max_tokens_to_sample: 500, }); diff --git a/examples/demo.ts b/examples/demo.ts index 226cff55..7bc41d72 100755 --- a/examples/demo.ts +++ b/examples/demo.ts @@ -7,7 +7,7 @@ const client = new Anthropic(); // gets API Key from environment variable ANTHRO async function main() { const result = await client.completions.create({ prompt: `${Anthropic.HUMAN_PROMPT} how does a court case get to the Supreme Court? ${Anthropic.AI_PROMPT}`, - model: 'claude-v1.3', + model: 'claude-2', max_tokens_to_sample: 300, }); console.log(result.completion); diff --git a/examples/streaming.ts b/examples/streaming.ts index 7f1313ea..bb05ca45 100755 --- a/examples/streaming.ts +++ b/examples/streaming.ts @@ -9,7 +9,7 @@ async function main() { const stream = await client.completions.create({ prompt: `${Anthropic.HUMAN_PROMPT}${question}${Anthropic.AI_PROMPT}:`, - model: 'claude-v1', + model: 'claude-2', stream: true, max_tokens_to_sample: 500, });