Skip to content

Commit 01faf46

Browse files
committed
update
1 parent bb79169 commit 01faf46

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

articles/ai-services/openai/concepts/content-filter.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,12 @@ print(response.model_dump_json(indent=2))
386386
"created": 1699386280,
387387
"id": "chatcmpl-8IMI4HzcmcK6I77vpOJCPt0Vcf8zJ",
388388
"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+
},
390395
"prompt_filter_results": [
391396
{
392397
"content_filter_results": {
@@ -417,12 +422,7 @@ print(response.model_dump_json(indent=2))
417422
},
418423
"prompt_index": 0
419424
}
420-
],
421-
"usage": {
422-
"completion_tokens": 40,
423-
"prompt_tokens": 11,
424-
"total_tokens": 417
425-
}
425+
]
426426
}
427427
```
428428

@@ -495,7 +495,12 @@ print(response)
495495
"created": 1699386280,
496496
"id": "chatcmpl-8IMI4HzcmcK6I77vpOJCPt0Vcf8zJ",
497497
"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+
},
499504
"prompt_filter_results": [
500505
{
501506
"content_filter_results": {
@@ -526,12 +531,7 @@ print(response)
526531
},
527532
"prompt_index": 0
528533
}
529-
],
530-
"usage": {
531-
"completion_tokens": 40,
532-
"prompt_tokens": 11,
533-
"total_tokens": 417
534-
}
534+
]
535535
}
536536
```
537537

0 commit comments

Comments
 (0)