天天看點

調用chatGPTAPI基本上OK的。在ubuntu系統上幾行python就可以調用了,Windows平台上程式是一樣的

作者:圖靈量化

調用chatGPT API 基本上OK的。

在ubuntu系統上幾行python就可以調用了,Windows平台上程式是一樣的。

1、安裝openai: pip install open

2、登入你的openAI賬戶,右上角點選personal,有個APIkey,點選就可以擷取API key,也可以擷取多個,見圖;

3、寫個幾行調用程式即可,最後一幅圖。 #圖靈量化# #ChatGPT開放API接口# #國産chatgpt究竟何時能出#

調用chatGPTAPI基本上OK的。在ubuntu系統上幾行python就可以調用了,Windows平台上程式是一樣的
調用chatGPTAPI基本上OK的。在ubuntu系統上幾行python就可以調用了,Windows平台上程式是一樣的
調用chatGPTAPI基本上OK的。在ubuntu系統上幾行python就可以調用了,Windows平台上程式是一樣的
調用chatGPTAPI基本上OK的。在ubuntu系統上幾行python就可以調用了,Windows平台上程式是一樣的
調用chatGPTAPI基本上OK的。在ubuntu系統上幾行python就可以調用了,Windows平台上程式是一樣的

繼續閱讀