"리눅스 chatgpt-cli 설치"의 두 판 사이의 차이

(새 문서: ==개요== ;리눅스 chatgpt-cli 설치 * ※ 사용하려면 OPENAI_API_KEY 필요 <syntaxhighlight lang='console'> curl -sLO https://github.com/kardolus/chatgpt-cli/releases/downl...)
 
 
(같은 사용자의 중간 판 3개는 보이지 않습니다)
3번째 줄: 3번째 줄:
* ※ 사용하려면 OPENAI_API_KEY 필요
* ※ 사용하려면 OPENAI_API_KEY 필요


<syntaxhighlight lang='console'>
==설치==
<syntaxhighlight lang='bash'>
curl -sLO https://github.com/kardolus/chatgpt-cli/releases/download/v1.5.1/chatgpt-linux-amd64
curl -sLO https://github.com/kardolus/chatgpt-cli/releases/download/v1.5.1/chatgpt-linux-amd64
sudo mv chatgpt-linux-amd64 /usr/local/bin/chatgpt
sudo mv chatgpt-linux-amd64 /usr/local/bin/chatgpt
15번째 줄: 16번째 줄:
testuser@localhost:~$ chatgpt -v
testuser@localhost:~$ chatgpt -v
ChatGPT CLI version v1.5.1 (commit 18c42277bc164d0c188574ef6cfa3b478d7a28ed)
ChatGPT CLI version v1.5.1 (commit 18c42277bc164d0c188574ef6cfa3b478d7a28ed)
</syntaxhighlight>
==사용 예시==
<syntaxhighlight lang='console'>
testuser@localhost:~$ export OPENAI_API_KEY=sk-oP63b8Ao9M5G14ilxSb3UYaRL8C32vQaEXAMPLE
testuser@localhost:~$ chatgpt hello world
Hello! How can I assist you today?
testuser@localhost:~$ chatgpt what is chatgpt-cli
Chatbot GPT-3 command line interface (ChatGPT-CLI) is a tool that allows users to interact with the GPT-3 model via the command line interface. It enables users to generate human-like text responses based on the input provided to the model. This tool can be used for various text generation tasks such as chatting, brainstorming ideas, or generating content.
testuser@localhost:~$ chatgpt create 3 random strings follows OpenAI API key format
Sure! Here are 3 random strings following the OpenAI API key format:
1. sk-K54fUilX45T6YiBdfCm1GLhPxHkaf1J5
2. sk-oP63b8Ao9M5G14ilxSb3UYaRL8C32vQa
3. sk-pqI8AhR5zV6By7FVvH4clKjXqM6oDA9t
Please note that these are randomly generated strings and are not actual OpenAI API keys.
</syntaxhighlight>
<syntaxhighlight lang='console'>
testuser@localhost:~$ chatgpt -l
Available models:
- gpt-3.5-turbo-1106
- gpt-4-0613
- gpt-3.5-turbo-0125
- gpt-4
* gpt-3.5-turbo (current)
- gpt-4-vision-preview
- gpt-3.5-turbo-16k
- gpt-3.5-turbo-0301
- gpt-4-1106-vision-preview
- gpt-4-1106-preview
- gpt-3.5-turbo-instruct
- gpt-3.5-turbo-instruct-0914
- gpt-4-0125-preview
- gpt-4-turbo-preview
- gpt-3.5-turbo-16k-0613
- gpt-3.5-turbo-0613
</syntaxhighlight>
</syntaxhighlight>



2024년 3월 27일 (수) 17:22 기준 최신판

1 개요[ | ]

리눅스 chatgpt-cli 설치
  • ※ 사용하려면 OPENAI_API_KEY 필요

2 설치[ | ]

curl -sLO https://github.com/kardolus/chatgpt-cli/releases/download/v1.5.1/chatgpt-linux-amd64
sudo mv chatgpt-linux-amd64 /usr/local/bin/chatgpt
sudo chmod +x /usr/local/bin/chatgpt
chatgpt -v
testuser@localhost:~$ curl -sLO https://github.com/kardolus/chatgpt-cli/releases/download/v1.5.1/chatgpt-linux-amd64
testuser@localhost:~$ sudo mv chatgpt-linux-amd64 /usr/local/bin/chatgpt
testuser@localhost:~$ sudo chmod +x /usr/local/bin/chatgpt
testuser@localhost:~$ chatgpt -v
ChatGPT CLI version v1.5.1 (commit 18c42277bc164d0c188574ef6cfa3b478d7a28ed)

3 사용 예시[ | ]

testuser@localhost:~$ export OPENAI_API_KEY=sk-oP63b8Ao9M5G14ilxSb3UYaRL8C32vQaEXAMPLE
testuser@localhost:~$ chatgpt hello world
Hello! How can I assist you today?
testuser@localhost:~$ chatgpt what is chatgpt-cli
Chatbot GPT-3 command line interface (ChatGPT-CLI) is a tool that allows users to interact with the GPT-3 model via the command line interface. It enables users to generate human-like text responses based on the input provided to the model. This tool can be used for various text generation tasks such as chatting, brainstorming ideas, or generating content.
testuser@localhost:~$ chatgpt create 3 random strings follows OpenAI API key format
Sure! Here are 3 random strings following the OpenAI API key format:

1. sk-K54fUilX45T6YiBdfCm1GLhPxHkaf1J5
2. sk-oP63b8Ao9M5G14ilxSb3UYaRL8C32vQa
3. sk-pqI8AhR5zV6By7FVvH4clKjXqM6oDA9t

Please note that these are randomly generated strings and are not actual OpenAI API keys.
testuser@localhost:~$ chatgpt -l
Available models:
- gpt-3.5-turbo-1106
- gpt-4-0613
- gpt-3.5-turbo-0125
- gpt-4
* gpt-3.5-turbo (current)
- gpt-4-vision-preview
- gpt-3.5-turbo-16k
- gpt-3.5-turbo-0301
- gpt-4-1106-vision-preview
- gpt-4-1106-preview
- gpt-3.5-turbo-instruct
- gpt-3.5-turbo-instruct-0914
- gpt-4-0125-preview
- gpt-4-turbo-preview
- gpt-3.5-turbo-16k-0613
- gpt-3.5-turbo-0613

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}