Hi,
I’m using the deep-chat component and need to change the request URL and headers based on user input dynamically after rendering the page more than once. While the request updates initially, any additional changes to the URL or headers aren't reflected in subsequent requests. Below is the respective code.
HTML Code:
<deep-chat [request]='chatRequest' ... >
ts code:
public getPlaygroundUrl(response) {
this.chatRequest = {
"url": [http://model/${response.param}/chat
](http://model/$%7Bresponse.param%7D/chat),
"method": "POST",
"additionalBodyProps": { "token": ${response.token}
, "others": ${response.variable}
}
};
}
I'm getting the details from form.
Is there a recommended approach to ensure updates to chatRequest are applied with each change?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too