content.raw: 📢 For those who start to work with LLM streaming in web, here is a minimalistic example in JS for accessing server hosted by FastAPI via REST:
content.type: text
content.value: 📢 For those who start to work with LLM streaming in web, here is a minimalistic example in JS for accessing server hosted by FastAPI via REST:
content.type: new_line
content.href: https://gist.github.com/nicolay-r/840425749cf6d3e397da3d329e894d59
content.raw: https://gist.github.com/nicolay-r/840425749cf6d3e397da3d329e894d59
content.type: link
content.type: new_line
content.type: new_line
content.raw: The code above is a revised verison for accessing Replicate API posted earlier
content.type: text
content.value: The code above is a revised verison for accessing Replicate API posted earlier
content.type: new_line
content.href: https://huggingface.co/posts/nicolay-r/390307941200307
content.raw: https://huggingface.co/posts/nicolay-r/390307941200307
content.type: link
content.type: new_line
content.type: new_line
content.raw: The key difference from Replicate API:
content.type: text
content.value: The key difference from Replicate API:
content.type: new_line
content.raw: - using only POST for passing a body with parameters and fetching the reader.
content.type: text
content.value: - using only POST for passing a body with parameters and fetching the reader.
rawContent: 📢 For those who start to work with LLM streaming in web, here is a minimalistic example in JS for accessing server hosted by FastAPI via REST:
  https://gist.github.com/nicolay-r/840425749cf6d3e397da3d329e894d59
  
  The code above is a revised verison for accessing Replicate API posted earlier
  https://huggingface.co/posts/nicolay-r/390307941200307
  
  The key difference from Replicate API:
  - using only POST for passing a body with parameters and fetching the reader.
reactions.reaction: 👀
reactions.users: John6666 victor
reactions.reaction: 🔥
reactions.users: Boqua dantezxcd
reactions.reaction: ❤️
reactions.users: Akseltinfat dantezxcd