寫一個powershell函數(shù)調用你自己申請的chatgpt api
api參考資料:https://platform.openai.com/docs/api-reference/chat/create

測試使用環(huán)境:win10, powershell7 (不建議使用系統(tǒng)自帶的powershell,解析json、字符編碼會有一些奇怪的問題)
將這個函數(shù)放入到 powershell 的 配置文件$profile,以后每次啟動powershell就都能生效了
使用例:

