写一个powershell函数调用你自己申请的chatgpt api
api参考资料:https://platform.openai.com/docs/api-reference/chat/create

测试使用环境:win10, powershell7 (不建议使用系统自带的powershell,解析json、字符编码会有一些奇怪的问题)
将这个函数放入到 powershell 的 配置文件$profile,以后每次启动powershell就都能生效了
使用例:


api参考资料:https://platform.openai.com/docs/api-reference/chat/create
测试使用环境:win10, powershell7 (不建议使用系统自带的powershell,解析json、字符编码会有一些奇怪的问题)
将这个函数放入到 powershell 的 配置文件$profile,以后每次启动powershell就都能生效了
使用例: