본문 바로가기
728x90

전체 글46

Server-Sent Events(SSE) in nestjs 1. SSE란 무엇인가? SSE는 서버에서 클라이언트로 실시간으로 데이터를 전송하는 단방향 기술입니다. Websocket은 양방향으로 통신한다면 SSE는 서버에서 일방적으로 데이터를 전송할 때 사용합니다 아래의 포스트에서 chat-gpt를 streaming으로 통신할때, 서버에서 openAi를 통해 SSE방식으로 데이터를 받아오고, 클라이언트에 전송할때는 websocket을 활용했었습니다. https://kimjunho97.tistory.com/41 open-ai chat-gpt streaming 통신 기록 nestjs에서 open ai의 gpt-3.5-turbo를 사용하여 streaming 통신 구현 과정을 기록하였습니다. 참고 : https://github.com/openai/openai-node#s.. 2023. 10. 15.
open-ai chat-gpt streaming 통신 기록 nestjs에서 open ai의 gpt-3.5-turbo를 사용하여 streaming 통신 구현 과정을 기록하였습니다. 참고 : https://github.com/openai/openai-node#streaming-responses GitHub - openai/openai-node: The official Node.js / Typescript library for the OpenAI API The official Node.js / Typescript library for the OpenAI API - GitHub - openai/openai-node: The official Node.js / Typescript library for the OpenAI API github.com 1. nestjs에서 ap.. 2023. 10. 14.
위코드 나이트 멘토링 DAY 1 (10/5 목) 위코드 수강생분들의 더 좋은 학습경험을 위해 주 1회 19시 30분~21시 30분에 현업개발자로서 멘토링을 할 수 있는 기회를 얻게 되어, 멘토링 과정의 질의응답 과정을 기록해 보았습니다. 1. 입력값 [5, 2,8]인데 undefined가 나와요 function main (array) { if(array.length >= array){ return array[0] + array[1] } else if (array.length === 1){ return array[0] } else if (array.length ===0){ return 0 } } 해당 문제는 똑같이 재현하지 못했지만, 문제 구조와 질문은 동일합니다. 그리고 자바스크립트 문법을 처음 접하고 일주일도 안되고 알고리즘 문제를 푸는데 나온 질문.. 2023. 10. 13.
flutter 간단한 WebView app 만들기 (home_widget 후편) 더보기 HomeWidget is a Plugin to make it easier to create HomeScreen Widgets on Android and iOS. HomeWidget does not allow writing Widgets with Flutter itself. It still requires writing the Widgets with native code. However, it provides a unified Interface for sending data, retrieving data and updating the Widgets Flutter에서는 홈 화면 위젯을 만드는 것이 약간 복잡합니다. Dart 언어로는 홈 화면 위젯을 만들 수 없습니다. 그러므로 안드로이드용 코틀린이나 .. 2023. 9. 26.
728x90