File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
ecosystem-tests/vercel-edge/src/pages/api Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export default async (request: NextRequest) => {
16
16
17
17
const result = await openai . completions . create ( {
18
18
prompt : 'Say this is a test' ,
19
- model : 'text-davinci-003 ' ,
19
+ model : 'gpt-3.5-turbo-instruct ' ,
20
20
} ) ;
21
21
return NextResponse . json ( result ) ;
22
22
} ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export default async (request: NextRequest) => {
18
18
19
19
const stream = await openai . completions . create ( {
20
20
prompt : 'Say this is a test' ,
21
- model : 'text-davinci-003 ' ,
21
+ model : 'gpt-3.5-turbo-instruct ' ,
22
22
stream : true ,
23
23
} ) ;
24
24
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ async function main() {
11
11
const response = await client . completions
12
12
. create ( {
13
13
prompt : 'Say this is a test' ,
14
- model : 'text-davinci-003 ' ,
14
+ model : 'gpt-3.5-turbo-instruct ' ,
15
15
} )
16
16
. asResponse ( ) ;
17
17
console . log ( `response headers: ` , Object . fromEntries ( response . headers . entries ( ) ) ) ;
@@ -23,7 +23,7 @@ async function main() {
23
23
const { data : completion , response } = await client . completions
24
24
. create ( {
25
25
prompt : 'Say this is a test' ,
26
- model : 'text-davinci-003 ' ,
26
+ model : 'gpt-3.5-turbo-instruct ' ,
27
27
} )
28
28
. withResponse ( ) ;
29
29
console . log ( `response headers: ` , Object . fromEntries ( response . headers . entries ( ) ) ) ;
You can’t perform that action at this time.
0 commit comments