File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ async function main() {
17
17
18
18
const stream = await client . completions . create ( {
19
19
prompt : `${ Anthropic . HUMAN_PROMPT } ${ question } ${ Anthropic . AI_PROMPT } :` ,
20
- model : 'claude-v1 ' ,
20
+ model : 'claude-2 ' ,
21
21
stream : true ,
22
22
max_tokens_to_sample : 500 ,
23
23
} ) ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const client = new Anthropic(); // gets API Key from environment variable ANTHRO
7
7
async function main ( ) {
8
8
const result = await client . completions . create ( {
9
9
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 ' ,
11
11
max_tokens_to_sample : 300 ,
12
12
} ) ;
13
13
console . log ( result . completion ) ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ async function main() {
9
9
10
10
const stream = await client . completions . create ( {
11
11
prompt : `${ Anthropic . HUMAN_PROMPT } ${ question } ${ Anthropic . AI_PROMPT } :` ,
12
- model : 'claude-v1 ' ,
12
+ model : 'claude-2 ' ,
13
13
stream : true ,
14
14
max_tokens_to_sample : 500 ,
15
15
} ) ;
You can’t perform that action at this time.
0 commit comments