Discussions

Ask a Question
Back to all

Create Agent Stream Documentation Issue

The documentation reference to create agent stream https://docs.d-id.com/reference/createagentstream says we can't have a config object in the body but i can still call that api with the config object in body and it does not only work but also changes the behaviore of stream.


What body i used:

const res = await didFetch(/agents/${AGENT_ID}/streams, { method: 'POST', body: JSON.stringify({ stream_warmup: true, config: { agent: { type: 'manual' }, } }), });

Why i did this:
It was suggested by Chat GPT o3 model.

What i was trying to do:
I want to start an agent stream but wanted the agent must speak the text i give to it not the text given to it by the D-ID internal LLM. if there is anyother way to acheive this please let me know

Results:

Using type: 'manual' in body worked but i was facing issue that i want to receive the video in 9/16 format which again suggested by the ChatGPT that if we add video: { width: 1080, height: 1920 } in config inside body we can achieve it but it does not worked

So please let me can we use config in body or not if no than how does the type: 'manual' worked