Skip to content

Commit

Permalink
Updated examples with current claude models (#1332)
Browse files Browse the repository at this point in the history
  • Loading branch information
elibullockpapa authored Apr 16, 2024
1 parent 46cdee6 commit e48d7ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pages/docs/guides/providers/anthropic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function POST(req: Request) {
// Ask Claude for a streaming chat completion given the prompt
const response = await anthropic.messages.create({
messages,
model: 'claude-2.1',
model: 'claude-3-haiku-20240307',
stream: true,
max_tokens: 300,
});
Expand Down Expand Up @@ -141,7 +141,7 @@ export async function POST(req: Request) {
// Ask Claude for a streaming chat completion given the prompt
const response = await anthropic.completions.create({
prompt: `Human: ${prompt}\n\nAssistant:`,
model: 'claude-2',
model: 'claude-3-haiku-20240307',
stream: true,
max_tokens_to_sample: 300,
});
Expand Down

0 comments on commit e48d7ae

Please sign in to comment.