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
- goaccess
- 쇼펜의상속자 #킨텍스메가쇼 #섬유향수탈취제
- Performance
- 솔라리스
- 칭찬교육
- rm
- Linux
- Kernel
- ext4
- Bash
- Disk
- Cache
- DNS
- iptables
- CPU
- windows
- PORT
- 리눅스
- 디스크
- Hack
- ext3
- pid
- cadre
- apachetop
- http
- 좌절교육
- rsync
- rm -rf
- Python
- PERL
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)