Giter Site home page Giter Site logo

chatgpt-api-tutorial's Introduction

ChatGPT API Tutorial

진짜 챗GPT API 활용법 교재의 깃허브입니다.

진짜 실무에서 사용하는 ChatGPT API 사용법들을 눌러담았습니다. chatgpt책

문의사항 (Inquiries)

궁금한 사항이 있으면 이슈 또는 이메일 부탁드립니다.

저자 (Authors)

김준성 / ([email protected]) : 자율주행 개발자
브라이스유 / ([email protected]) : 딥 러닝 자연어 처리 연구원
안상준 / ([email protected]) : AI 분야 강사 및 겸임 교수

실습 코드 수정 내용

2쇄 수정사항

FFmpeg 설치 방법

  • Windows
    1. Chocolatey 설치

      window powershell을 관리자 권한으로 실행합니다. ([windosws] + [S] 키 입력 -> window powershell 검색 -> 마우스 우클릭 -> 관리자 권한으로 실행 클릭)

      아래 명령어를 입력하여 Chocolatey 를 설치합니다.

      Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
      
    2. FFmpeg 설치

      이어서 아래 명령어를 입력하여 FFmpeg 를 설치합니다.

      choco install ffmpeg
      
  • Mac
    1. Homebrew 설치 터미널 창 실행 후 아래 명령어를 입력하여 Home brew를 설치합니다.
      /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
      
    2. FFmpeg 설치 이어서 아래 명령어를 입력하여 FFmpeg 를 설치합니다.
      brew install ffmpeg
      

1쇄 수정사항

음성비서 프로그램 실습 코드 추가(23.09.09)

streamlit-audiorecorder 패키지 변경으로 인한 신규버전 음성비서 프로그램 실습파일 추가하였습니다.

책의 설명을 따라 실습을 진행하시려면 아래 2가지 방법 중 "1) 기존 실습코드 활용" 시 설명에 따라 실습을 진행합니다.

  1. 기존 실습코드를 활용 시

    • 실습 코드 : ch03/ch03_voicebot.py
    • pip install streamlit-audiorecorder==0.0.2 명령어로 설치(책 P.88)
  2. 신규 실습코드를 활용 시 (ch03/ch03_voicebot_ver2.py)

    • 실습 코드 : ch03/ch03_voicebot_ver2.py
    • pip install streamlit-audiorecorder 명령어로 설치(책 P.88)

openAI 패키지 설치 명령어 변경(23.11.08)

23년 11월 7일 부로 openAI 가 대대적인 업데이트를 하면서 API 코드 문법이 변경되었습니다. 책의 내용 및 예제코드와 동일한 실습을 위해선 아래의 명령어로 openai 패키지 설치를 진행합니다.

  • pip install openai==0.28.1

만약 이미 신규버전(1.1.1) 설치를 하셨다면 먼저 아래 명령어로 패키지 삭제 후 다시 설치를 진행합니다.

  • pip uninstall openai

chatgpt-api-tutorial's People

Contributors

junseongkim1104 avatar ukairia777 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

chatgpt-api-tutorial's Issues

AWS와 카카오 연결 이슈

4장에서 로컬 PC와 카카오는 잘 연결이 되는데, AWS를 이용하면 아래와 같은 메시지가 오면서 계속 오류가 뜹니다.

"금융시장도우미" 봇에서 스킬 오류가 발생했습니다.

  • 스킬 서버 연결 오류 : '폴백 블록' 블록에서 발생
    세부 내용 및 실시간 오류는 '스킬 > 오류 내역'에서 확인해 주세요.
    알림 수신 설정은 우측 상단의 '계정 > 알림 설정'에서 가능합니다.

로컬 PC로는 잘되던 것이 AWS로 바꾸어서 안된다는 건 AWS쪽 문제인 것 같은데요. 람다함수 만든 것을 올립니다. openai 0.28.1 버전으로 했습니다. 환경변수와 패키지 레이어는 잘 구성했습니다. 에러는 폴백에러로 나와 카카오쪽인 것 같나 몇번이고 스킬과 폴백블록을 지우고 새로하고 여러번 반복했습니다. 교재를 보고 만든 람다함수 첨부합니다.

ch04_Mykakaobot_Lambda.zip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.