Skip to content

Instantly share code, notes, and snippets.

View zgpeace's full-sized avatar

zgpeace zgpeace

View GitHub Profile

Chat GPT 由于其独特、近乎准确且类似人类的响应,如今在互联网上引起了过多的讨论。本文讨论如何通过 Python 代码连接到 Chat GPT API。 如果需要用website访问chatGPT, 可以参考 教程注册chatGPT

在这里插入图片描述

@[TOC]

第 1 步:获取 OpenAI API 的 API 密钥

要获取 OpenAI API 的 API 密钥,您需要在 OpenAI 网站上注册一个 OpenAI 帐户。拥有帐户后,您可以按照以下步骤创建 API 密钥:

@zgpeace
zgpeace / ChatGPTRegister.md
Created February 20, 2023 15:54
ChatGPT Register

地址:https://chat.openai.com/

1. 登陆上去体验

写代码问题

Could you help me to write a C++ function to upload a file to ASW S3?

在这里插入图片描述 回复 带代码和注释

@zgpeace
zgpeace / HelloWorld.ipynb
Created September 5, 2021 08:01
Zgpeace first Jupyter Notbook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zgpeace
zgpeace / gist:7f92329c9ef56e543beeaa08f582bc92
Last active February 20, 2023 16:46
Linux CentOS 8定时任务脚本crond.sh,检测状态,自动重启脚本sh shadowsocks

1. 原因:进程被kill掉

不少人反应 ss 在使用一段时间后,其进程会消失。 其实这种情况大多数是被系统给 kill 了。

此命令可查看正在运行的 ss 服务的进程ID,进程名叫 ss-server

netstat -lptn

关闭 ss 服务,xxxx 请改用你上面命令查到的进程id