shell 스크립트를 자동으로 동작해주는 프롬프트를 작성하기
이종현
2023.02.04
- 아래와 같은 프롬프트를 작성
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 스크립트를 로컬환경에서 실행
| 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 스크립트를 로컬환경에서 실행

![[문과생도 AI] 돌봄서비스를 위한 대화형 음성 챗봇 구현하기 썸네일](/_next/image?url=https%3A%2F%2Fcdn-beta.gpters.org%2Fexternal%2F923a1463c757342f9ed1da51.png&w=3840&q=75)

![[문과생도 AI] 4주 만에 AI로 서비스 개발하기(10기) 사례발표 썸네일](/_next/image?url=https%3A%2F%2Fcdn.gpters.org%2Fexternal%2F0f4d6639207d9af6a8fd7049.jpg&w=3840&q=75)