@@ -386,7 +386,12 @@ print(response.model_dump_json(indent=2))
386
386
"created" : 1699386280 ,
387
387
"id" : " chatcmpl-8IMI4HzcmcK6I77vpOJCPt0Vcf8zJ" ,
388
388
"model" : " gpt-35-turbo-instruct" ,
389
- "object" : " chat.completion" ,
389
+ "object" : " text.completion" ,
390
+ "usage" : {
391
+ "completion_tokens" : 40 ,
392
+ "prompt_tokens" : 11 ,
393
+ "total_tokens" : 417
394
+ },
390
395
"prompt_filter_results" : [
391
396
{
392
397
"content_filter_results" : {
@@ -417,12 +422,7 @@ print(response.model_dump_json(indent=2))
417
422
},
418
423
"prompt_index" : 0
419
424
}
420
- ],
421
- "usage" : {
422
- "completion_tokens" : 40 ,
423
- "prompt_tokens" : 11 ,
424
- "total_tokens" : 417
425
- }
425
+ ]
426
426
}
427
427
```
428
428
@@ -495,7 +495,12 @@ print(response)
495
495
"created" : 1699386280 ,
496
496
"id" : " chatcmpl-8IMI4HzcmcK6I77vpOJCPt0Vcf8zJ" ,
497
497
"model" : " gpt-35-turbo-instruct" ,
498
- "object" : " chat.completion" ,
498
+ "object" : " text.completion" ,
499
+ "usage" : {
500
+ "completion_tokens" : 40 ,
501
+ "prompt_tokens" : 11 ,
502
+ "total_tokens" : 417
503
+ },
499
504
"prompt_filter_results" : [
500
505
{
501
506
"content_filter_results" : {
@@ -526,12 +531,7 @@ print(response)
526
531
},
527
532
"prompt_index" : 0
528
533
}
529
- ],
530
- "usage" : {
531
- "completion_tokens" : 40 ,
532
- "prompt_tokens" : 11 ,
533
- "total_tokens" : 417
534
- }
534
+ ]
535
535
}
536
536
```
537
537
0 commit comments