@@ -134,7 +134,7 @@ describe("Anthropic", () => {
134134 test ( "streamChat should send a valid request" , async ( ) => {
135135 const anthropic = new Anthropic ( {
136136 apiKey : "test-api-key" ,
137- model : "claude-3-5- sonnet-latest " ,
137+ model : "claude-sonnet-4-5 " ,
138138 apiBase : "https://api.anthropic.com/v1/" ,
139139 } ) ;
140140
@@ -155,7 +155,7 @@ describe("Anthropic", () => {
155155 "x-api-key" : "test-api-key" ,
156156 } ,
157157 body : {
158- model : "claude-3-5- sonnet-latest " ,
158+ model : "claude-sonnet-4-5 " ,
159159 max_tokens : 8192 ,
160160 stream : true ,
161161 messages : [
@@ -177,7 +177,7 @@ describe("Anthropic", () => {
177177 test ( "chat should send a valid request" , async ( ) => {
178178 const anthropic = new Anthropic ( {
179179 apiKey : "test-api-key" ,
180- model : "claude-3-5- sonnet-latest " ,
180+ model : "claude-sonnet-4-5 " ,
181181 apiBase : "https://api.anthropic.com/v1/" ,
182182 } ) ;
183183
@@ -198,7 +198,7 @@ describe("Anthropic", () => {
198198 "x-api-key" : "test-api-key" ,
199199 } ,
200200 body : {
201- model : "claude-3-5- sonnet-latest " ,
201+ model : "claude-sonnet-4-5 " ,
202202 max_tokens : 8192 ,
203203 stream : true ,
204204 messages : [
@@ -220,7 +220,7 @@ describe("Anthropic", () => {
220220 test ( "streamComplete should send a valid request" , async ( ) => {
221221 const anthropic = new Anthropic ( {
222222 apiKey : "test-api-key" ,
223- model : "claude-3-5- sonnet-latest " ,
223+ model : "claude-sonnet-4-5 " ,
224224 apiBase : "https://api.anthropic.com/v1/" ,
225225 } ) ;
226226
@@ -238,7 +238,7 @@ describe("Anthropic", () => {
238238 "x-api-key" : "test-api-key" ,
239239 } ,
240240 body : {
241- model : "claude-3-5- sonnet-latest " ,
241+ model : "claude-sonnet-4-5 " ,
242242 max_tokens : 8192 ,
243243 stream : true ,
244244 messages : [
@@ -260,7 +260,7 @@ describe("Anthropic", () => {
260260 test ( "complete should send a valid request" , async ( ) => {
261261 const anthropic = new Anthropic ( {
262262 apiKey : "test-api-key" ,
263- model : "claude-3-5- sonnet-latest " ,
263+ model : "claude-sonnet-4-5 " ,
264264 apiBase : "https://api.anthropic.com/v1/" ,
265265 } ) ;
266266
@@ -278,7 +278,7 @@ describe("Anthropic", () => {
278278 "x-api-key" : "test-api-key" ,
279279 } ,
280280 body : {
281- model : "claude-3-5- sonnet-latest " ,
281+ model : "claude-sonnet-4-5 " ,
282282 max_tokens : 8192 ,
283283 stream : true ,
284284 messages : [
@@ -301,7 +301,7 @@ describe("Anthropic", () => {
301301 test ( "should handle system message" , async ( ) => {
302302 const anthropic = new Anthropic ( {
303303 apiKey : "test-api-key" ,
304- model : "claude-3-5- sonnet-latest " ,
304+ model : "claude-sonnet-4-5 " ,
305305 apiBase : "https://api.anthropic.com/v1/" ,
306306 } ) ;
307307
@@ -325,7 +325,7 @@ describe("Anthropic", () => {
325325 "x-api-key" : "test-api-key" ,
326326 } ,
327327 body : {
328- model : "claude-3-5- sonnet-latest " ,
328+ model : "claude-sonnet-4-5 " ,
329329 max_tokens : 8192 ,
330330 stream : true ,
331331 messages : [
@@ -347,7 +347,7 @@ describe("Anthropic", () => {
347347 test ( "should handle tool calls" , async ( ) => {
348348 const anthropic = new Anthropic ( {
349349 apiKey : "test-api-key" ,
350- model : "claude-3-5- sonnet-latest " ,
350+ model : "claude-sonnet-4-5 " ,
351351 apiBase : "https://api.anthropic.com/v1/" ,
352352 } ) ;
353353
@@ -386,7 +386,7 @@ describe("Anthropic", () => {
386386 "x-api-key" : "test-api-key" ,
387387 } ,
388388 body : {
389- model : "claude-3-5- sonnet-latest " ,
389+ model : "claude-sonnet-4-5 " ,
390390 max_tokens : 8192 ,
391391 stream : true ,
392392 messages : [
@@ -424,7 +424,7 @@ describe("Anthropic", () => {
424424 test ( "should handle custom max tokens" , async ( ) => {
425425 const anthropic = new Anthropic ( {
426426 apiKey : "test-api-key" ,
427- model : "claude-3-5- sonnet-latest " ,
427+ model : "claude-sonnet-4-5 " ,
428428 apiBase : "https://api.anthropic.com/v1/" ,
429429 } ) ;
430430
@@ -446,7 +446,7 @@ describe("Anthropic", () => {
446446 "x-api-key" : "test-api-key" ,
447447 } ,
448448 body : {
449- model : "claude-3-5- sonnet-latest " ,
449+ model : "claude-sonnet-4-5 " ,
450450 max_tokens : 1000 ,
451451 stream : true ,
452452 messages : [
@@ -470,7 +470,7 @@ describe("Anthropic", () => {
470470 test ( "should throw error when API key is missing" , async ( ) => {
471471 const anthropic = new Anthropic ( {
472472 apiKey : "" ,
473- model : "claude-3-5- sonnet-latest " ,
473+ model : "claude-sonnet-4-5 " ,
474474 apiBase : "https://api.anthropic.com/v1/" ,
475475 } ) ;
476476
0 commit comments