Giter Club home page Giter Club 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

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.