Skip to content

Commit 36cc4df

Browse files
authored
Removing streaming header in the requests sent to new streaming prediction endpoint (#594)
Signed-off-by: Saurabh Jain <[email protected]>
1 parent cbf691d commit 36cc4df

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ai-quick-actions/model-deployment-tips.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ body = {
215215
"stream": True,
216216
}
217217

218-
headers={'Content-Type':'application/json','enable-streaming':'true', 'Accept': 'text/event-stream'}
218+
headers={'Content-Type':'application/json', 'Accept': 'text/event-stream'}
219219
response = requests.post(endpoint, json=body, auth=auth, stream=True, headers=headers)
220220

221221
print(response.headers)
@@ -329,7 +329,6 @@ public class RestExample {
329329
.createRequest(Method.POST)
330330
.header("accepts", MediaType.APPLICATION_JSON)
331331
.header("content-type", MediaType.APPLICATION_JSON)
332-
.header("enable-streaming", "true")
333332
.body(jsonPayload);
334333

335334
// 5) Invoke the call and get the response.

0 commit comments

Comments
 (0)