Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/isdaviddong/chatGPTLineBot
https://github.com/isdaviddong/chatGPTLineBot
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/isdaviddong/chatGPTLineBot
- Owner: isdaviddong
- Created: 2022-12-05T12:55:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-04T10:51:08.000Z (over 1 year ago)
- Last Synced: 2024-08-01T22:41:34.360Z (3 months ago)
- Language: C#
- Size: 14.6 KB
- Stars: 110
- Watchers: 6
- Forks: 55
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.MD
Awesome Lists containing this project
- awesome-chatgpt - ChatGPT LINE Bot
- awesome-dotnet-machine-learning - chatGPTLineBot
README
ChatGPT LINE Bot
===
最近幾天紅到不行的人工智能對談範例 chatGPT (https://chat.openai.com/chat), 其實是透過 openAPI 服務來實作的一個範例。因此,只要申請 openAPI key ,人人都可以建立一個 AI 智能對談服務...1. 於底下位置申請 openAPI key:
https://beta.openai.com/account/api-keys請置換程式碼中的key與token即可,分別位於:
/Controllers/ChatGPT.cs 22行(使用 openAPI key)
![](https://i.imgur.com/N5k9bNt.png)/Controllers/LineWebHookController.cs 16,21行 (使用你應該很熟的 LINE Bot Token, 如果不熟, 請參考 https://github.com/isdaviddong/HOL-LineBotSDK )
![](https://i.imgur.com/mynmuCV.png)2. 建置後使用 NGROK 測試 或 佈署到正式網站
3. 配置 LINE WebHook執行結果:
![](https://i.imgur.com/v6Shjgk.png)### OpenAI參考文件:
https://beta.openai.com/docs/api-reference/completions/create