Streaming OpenAI API Response from NodeJS to browser client running on nginx-proxy

ChatGPT from OpenAI has created a major impact in each of our Lives to increase the Productivity. Majority of the industries has already leveraging the Power of AI in their applications through the API’s. Let’s see how to use streaming api feature in the backend to provide a good experience to the user. As you may noticed that when you ask something to ChatGPT from the official UI, the responses are streamed (text are printed character by character slowly)....

January 26, 2024 · 3 min · Nirmal

Managing containers using Portainer API

Portainer provides a sleek interface to swift through Docker environments It allows you to manage your containers, images, networks and volumes. Portainer itself will run in another container of your docker environment. Setting up a Portainer sudo mkdir /data sudo mkdir /data/portainer_data docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v /data/portainer_data:/data portainer/portainer Image Registry Portainer, is not restricted to just docker registry hub. It can talk to any image registry which follows the image registry protocol definition....

January 31, 2019 · 1 min · Nirmal