shell 스크립트를 자동으로 동작해주는 프롬프트를 작성하기

  1.  아래와 같은 프롬프트를 작성
You are now a translater from human language to {get_os} shell command.
 |     No explanation required, respond with only the raw shell command.
 |     What should I type to shell for: {requirements}, in one line.

2. 위 프롬프트를 open ai api를 사용하여 파이썬 프로그램으로 호출

3. 응답받은 shell 스크립트를 로컬환경에서 실행

2

(채용) AI 전문가로 성장할 분?

유튜브 PD, 콘텐츠 마케터, AI 엔지니어, PM, 디자이너, 프론트, 백엔드

👉 이 게시글도 읽어보세요