본문 바로가기

전체 글78

[영어공부 24일차] BGIU 2회독 36~56 unit I read Grammar in Use with the audiobook. I listened to the audiobook and repeated the sentences.The sentences are easy, so I can understand almost all of them while saying them.I can speak by reading the script, but I can’t speak without it.My goal for the third time is to listen and repeat without using the script. The sentences I struggle to translate naturally from Korean to English.Who do t.. 2025. 1. 14.
[영어공부 23일차] BGIU 2회독 13~35 unit I studied English for about 15 minutes during lunch time.And after work, I studied for another 45 minutes.I found a new app called "LingQ." It helps me study through input, and it's quite good.There are short videos on the app, and they even have episodes from Friends.I tried watching Friends to study English, but I wasn’t really interested in that show.It’s a bit hard to watch a full episode wi.. 2025. 1. 13.
[OpenAI API] Function Calling 2023년 하반기쯤 AI팩토리 김태영 대표님의 Function Calling을 사용한 Switch bot 제어하는 수업을 들었다.이때 들은 수업을 바탕으로 강의 내용을 정리하다보니, OpenAI 코드가 몇가지 바뀐 부분이 있어서 다시 정리해보려고 한다. 그리고 이 포스팅에서는 Chat Completions에 대한 내용을 적지 않을 것이다.이전 게시글에 작성해두었으니 참고하면 좋겠다. 2025.01.11 - [GenAI] - [OpenAI API] Chat Completions 사용해보기 1) Function Calling이란?LLM을 사용할 때 외부 함수를 사용할 수 있는 기능이다. LLM(GPT)에 함수를 미리 알려주면 필요할 때 함수를 LLM이 불러서 사용한다.예를 들면 날씨를 Function cal.. 2025. 1. 11.
[OpenAI API] api key 설정해주기 1) OpenAI API key 발급받기1️⃣ OpenAI API 홈페이지 들어가서 로그인하기- https://openai.com/index/openai-api/ 2️⃣ 설정으로 들어간다.- 로그인을 하면 위와 같은 화면이 나오는데 여기서 설정으로 들어가준다. 3️⃣ Create new secret key 버튼 클릭 4️⃣ key 생성하기- name과 project 칸을 채우면 아래 create secret key 버튼이 활성화된다.- 이 버튼을 누르면 키가 생성된다.- 이때 나온 키를 꼭 저장해주어야한다. 다시 찾을 수 없다. 2) python에서 OpenAI Key 설정해주기- 여러가지 방법이 있지만, key를 코드에서 직접 입력해서 사용하는 방법을 사용하겠다.- colab에서 바로바로 테스트해볼때 .. 2025. 1. 11.