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 |
Tags
- PORT
- 리눅스
- rsync
- rm -rf
- Kernel
- CPU
- rm
- Python
- cadre
- ext3
- Hack
- http
- 쇼펜의상속자 #킨텍스메가쇼 #섬유향수탈취제
- apachetop
- iptables
- pid
- 디스크
- 칭찬교육
- 좌절교육
- windows
- 솔라리스
- Bash
- Cache
- Linux
- ext4
- DNS
- Disk
- PERL
- Performance
- goaccess
Archives
- Today
- Total
Ben's
Example for OpenAI GPT-3 API 본문
728x90
import openai
openai.api_key = "YOUR_API_KEY"
prompt = "안녕하세요, 세상!"
model = "text-davinci-002"
temperature = 0.5
response = openai.Completion.create(
engine=model,
prompt=prompt,
max_tokens=1024,
n=1,
stop=None,
temperature=temperature,
)
print(response.choices[0].text)