본문 바로가기

코딩코딩코딩

검색하기
코딩코딩코딩
프로필사진 hanshow113

  • 분류 전체보기 (76)
    • 파이썬 (54)
      • 텍스트마이닝 (12)
      • 이미지 처리 (1)
      • 문법 (12)
      • Algorithms (19)
      • Flask (4)
      • GeoData (4)
      • Chat-GPT (1)
    • MySQL (19)
      • BasicGrammer (5)
      • Problem Solving (14)
    • R (1)
    • Git (1)
    • 취업준비 (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
  • Github
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
  • 해시태그
  • 인스타그램
  • kmeans
  • geoDataFrame
  • NLP
  • to shp
  • clustering
  • Python
  • 백준
  • Crawling
  • colab runtime
  • 혁신성장부문
  • plotly dash
  • 괄호 문제
  • convert to shp
  • Merge Repositories
  • 셀레니움
  • flask
  • 플라스크
  • 웹페이지
  • 크롤링
  • Selenium
  • string to list
  • Chat-GPT
  • 알고리즘
  • python buildpacks
  • 파이썬
  • 코랩 런타임
  • geopandas
  • 2164 카드2
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록파이썬/Chat-GPT (1)

코딩코딩코딩

Chat-GPT in Python (PyCharm)

import openai as oa t = "sk-~~~~~~J" oa.api_key = t def get_completion(prompt, model='gpt-3.5-turbo'): messages = [{"role": "user", "content": prompt}] response = oa.ChatCompletion.create( model=model, messages=messages, temperature=0, ) return response.choices[0].message["content"] # prompt = "Please tell me about what is difference between chat-gpt model 3.5 and 4 in korean." prompt = "'빨래'는 '..

파이썬/Chat-GPT 2023. 8. 7. 23:35
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바