반응형
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- string
- Torch
- GPT
- socketio
- 맛집
- pytorch
- ros
- TTS
- openAI
- 딥러닝
- 스팸
- ubuntu
- 판교
- CUDA
- 티스토리챌린지
- no space left on device
- humble
- ROS2
- timm
- linux
- 분당맛집
- tensorflow
- 터미널
- opencv
- ChatGPT
- Android
- error
- 오블완
- python
- CLASS
Archives
- Today
- Total
RoBoLoG
[ChatGPT] Ubuntu 터미널에서 ChatGPT 답변 생성 본문
만약 OpenAI API Key를 발급받았다면,
아래를 형식에 맞게 입력하면 Ubuntu 터미널에서 ChatGPT 답변을 얻을 수 있다.
curl https://api.openai.com/v1/chat/completions -H 'Content-Type: application/json; charset=utf-8' -H "Authorization: [API KEY 입력]" -d '{"model": [모델선택:gpt-4, gpt-3.5-turbo], "messages": [{"role": "user", "content": "[하고싶은 말 입력]"}], "max_tokens": [최대 토큰수 입력(정수)]}'
728x90
반응형
'인공지능 놀이터 > CHATGPT' 카테고리의 다른 글
| [ChatGPT] 라인 일러스트를 그려주는 프롬프트! (5) | 2024.11.15 |
|---|---|
| [ChatGPT] GPT를 로봇 연구에 활용하는 방법 (2) | 2024.03.13 |
| ChatGPT오류: Hmm...something seems to have gone wrong. (0) | 2024.01.30 |
| [ChatGPT] AI그림: 남북통일된 한국의 모습 (0) | 2024.01.18 |