Stream AI block
curl --request POST \
--url http://127.0.0.1:3333/v3/integrations/openai/stream \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sessionId": "<string>"
}
'import requests
url = "http://127.0.0.1:3333/v3/integrations/openai/stream"
payload = { "sessionId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({sessionId: '<string>'})
};
fetch('http://127.0.0.1:3333/v3/integrations/openai/stream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}OpenAI
Stream OpenAI
Stream the current authorized AI block.
POST
/
v3
/
integrations
/
openai
/
stream
Stream AI block
curl --request POST \
--url http://127.0.0.1:3333/v3/integrations/openai/stream \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sessionId": "<string>"
}
'import requests
url = "http://127.0.0.1:3333/v3/integrations/openai/stream"
payload = { "sessionId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({sessionId: '<string>'})
};
fetch('http://127.0.0.1:3333/v3/integrations/openai/stream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}