44 {44 {
45 "ident": "moderation"45 "ident": "moderation"
46 },46 },
47 {
48 "ident": "obfuscation"
49 },
47 {50 {
48 "ident": "service_tier"51 "ident": "service_tier"
49 },52 },
63 "(resource) chat.completions > (model) chat_completion_chunk > (schema) > (property) model",66 "(resource) chat.completions > (model) chat_completion_chunk > (schema) > (property) model",
64 "(resource) chat.completions > (model) chat_completion_chunk > (schema) > (property) object",67 "(resource) chat.completions > (model) chat_completion_chunk > (schema) > (property) object",
65 "(resource) chat.completions > (model) chat_completion_chunk > (schema) > (property) moderation",68 "(resource) chat.completions > (model) chat_completion_chunk > (schema) > (property) moderation",
69 "(resource) chat.completions > (model) chat_completion_chunk > (schema) > (property) obfuscation",
66 "(resource) chat.completions > (model) chat_completion_chunk > (schema) > (property) service_tier",70 "(resource) chat.completions > (model) chat_completion_chunk > (schema) > (property) service_tier",
67 "(resource) chat.completions > (model) chat_completion_chunk > (schema) > (property) system_fingerprint",71 "(resource) chat.completions > (model) chat_completion_chunk > (schema) > (property) system_fingerprint",
68 "(resource) chat.completions > (model) chat_completion_chunk > (schema) > (property) usage"72 "(resource) chat.completions > (model) chat_completion_chunk > (schema) > (property) usage"
201 "(resource) chat.completions > (model) chat_completion_chunk > (schema) > (property) moderation > (property) output"205 "(resource) chat.completions > (model) chat_completion_chunk > (schema) > (property) moderation > (property) output"
202 ]206 ]
203 },207 },
208 "(resource) chat.completions > (model) chat_completion_chunk > (schema) > (property) obfuscation": {
209 "kind": "HttpDeclProperty",
210 "oasRef": "#/components/schemas/CreateChatCompletionStreamResponse/properties/obfuscation",
211 "deprecated": false,
212 "key": "obfuscation",
213 "docstring": "An obfuscation string added to normalize the size of streamed chunks as a\nmitigation to certain side-channel attacks. The field is included by\ndefault and omitted when `stream_options.include_obfuscation` is `false`.\n",
214 "type": {
215 "kind": "HttpTypeString"
216 },
217 "optional": true,
218 "nullable": false,
219 "schemaType": "string",
220 "children": []
221 },
204 "(resource) chat.completions > (model) chat_completion_chunk > (schema) > (property) service_tier": {222 "(resource) chat.completions > (model) chat_completion_chunk > (schema) > (property) service_tier": {
205 "kind": "HttpDeclProperty",223 "kind": "HttpDeclProperty",
206 "oasRef": "#/components/schemas/CreateChatCompletionStreamResponse/properties/service_tier",224 "oasRef": "#/components/schemas/CreateChatCompletionStreamResponse/properties/service_tier",
2152### Example2170### Example
2153 2171
2154```json2172```json
2155{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-4o-mini", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]}2173{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-4o-mini", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"obfuscation":"r4N7vQ2m"}
2156 2174
2157{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-4o-mini", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}]}2175{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-4o-mini", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}],"obfuscation":"p9K3xT6w"}
2158 2176
2159....2177....
2160 2178
2161{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-4o-mini", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]}2179{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-4o-mini", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"obfuscation":""}
2162```2180```