목록Programing/AI (5)
스마트시대

Project Setup coding chatgpt_clone % django-admin startproject django_chatbot coding chatgpt_clone % cd django_chatbot coding django_chatbot % ls django_chatbot manage.py coding django_chatbot % python3 manage.py startapp chatbot coding django_chatbot % ls chatbot django_chatbot manage.py Frontend Integration & Project Build 이거 만들기 Don't need to care about this error Frontend Integration & Proje..

1.애드핏 등록하기 https://adfit.kakao.com/adManagement #loader { font-size: 25px; text-align: center; } --------------------- .kakao_ad { display: flex; justify-content: center; align-items: center; margin-top: 20px; min-width: 350px; min-height: 200px; } --------------------- send --------------------- --------------------- 2.복채 보내기 기능 https://www.buymeacoffee.com/settings 관련 코드 추가 ------------------ ..

1. Frontend deploy https://dash.cloudflare.com/3f1f80c7c55802b9f3ac0f8516bff61a/pages https://chatdoge-3vl.pages.dev/ userMessages.push(chatInput.value); chatInput.value = ''; // 이 부분 API Gateway url 넣기 const response = await fetch('https://.execute-api.ap-northeast-2.amazonaws.com/prod/fortuneTell', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ 2. Bac..

3.최신 채팅 반영된 코드(userMessages, assistantMessages 순차적으로 주고 받게 해주는 코드) index.html 운세에 대해서 물어봐 주세요! Send // 여기 수정---------------------

조코딩 보면서 따라 한 것 https://www.youtube.com/watch?v=b404R9bssc0&t=1s Backend part 1.index.js에서 서버 구축까지 const apiKey = "sk-" const { Configuration, OpenAIApi } = require("openai"); const express = require('express') var cors = require('cors') const app = express() const configuration = new Configuration({ apiKey: apiKey, }); const openai = new OpenAIApi(configuration); //CORS 이슈 해결 // let corsOptions ..