@@ -30,7 +30,7 @@ describe('Completions', () => {
3030
3131 it ( 'should create a non-streaming completion when stream is false' , async ( ) => {
3232 const body : Models . ChatCompletionCreateParamsNonStreaming = {
33- model : "jamba-1.5- mini" ,
33+ model : "jamba-mini" ,
3434 messages : [ { role : "user" , content : "Hello" } ] ,
3535 } ;
3636 const options : Models . RequestOptions = { headers : { 'Authorization' : `Bearer ${ dummyAPIKey } ` } } ;
@@ -58,7 +58,7 @@ describe('Completions', () => {
5858 } ) ;
5959
6060 it ( 'should create a streaming completion when stream is true' , async ( ) => {
61- const body : Models . ChatCompletionCreateParamsStreaming = { model : "jamba-1.5- mini" , messages : [ { role : "user" , content : "Hello" } ] , stream : true } ;
61+ const body : Models . ChatCompletionCreateParamsStreaming = { model : "jamba-mini" , messages : [ { role : "user" , content : "Hello" } ] , stream : true } ;
6262 const options : Models . RequestOptions = { headers : { 'Authorization' : `Bearer ${ dummyAPIKey } ` } } ;
6363 const expectedStream : Models . ChatCompletionChunk = {
6464 id : "test-id" ,
@@ -85,7 +85,7 @@ describe('Completions', () => {
8585 } ) ;
8686
8787 it ( 'should use default options when options parameter is omitted' , async ( ) => {
88- const body : Models . ChatCompletionCreateParamsNonStreaming = { model : "jamba-1.5- mini" , messages : [ { role : "user" , content : "Hello" } ] , stream : false } ;
88+ const body : Models . ChatCompletionCreateParamsNonStreaming = { model : "jamba-mini" , messages : [ { role : "user" , content : "Hello" } ] , stream : false } ;
8989 const expectedResponse : Models . ChatCompletionResponse = {
9090 id : "test-id" ,
9191 usage : {
@@ -108,7 +108,7 @@ describe('Completions', () => {
108108 } ) ;
109109
110110 it ( 'should handle errors thrown by the API client' , async ( ) => {
111- const body : Models . ChatCompletionCreateParamsNonStreaming = { model : "jamba-1.5- mini" , messages : [ { role : "user" , content : "Hello" } ] , stream : false } ;
111+ const body : Models . ChatCompletionCreateParamsNonStreaming = { model : "jamba-mini" , messages : [ { role : "user" , content : "Hello" } ] , stream : false } ;
112112 const error = new AI21Error ( ) ;
113113
114114 mockClient . post . mockRejectedValue ( error ) ;
0 commit comments