Chatgpt 的OpeanAI的API接口部署笔记

为了学校思维导向课程的资料查阅,落实周校长采用人工智能技术,支持教师编写教材时的思路打开,及知识结构扩大,采用部署海外服务器+OpeanAI的API接口进行实现。

1:通过修改本机host文件,指向海外服务器域名解析的IP地址。

/etc/hosts
C:\Windows\System32\drivers\etc\hosts
 修改本地获得管理员权限,进行修改

step1:通读文档
https://github.com/ddiu8081/chatgpt-demo

按照文档,分成环境准备和安装部署环节
Pre environment
Getting Started
Deploy
指导学生理解文档,培养读文档的习惯
停下多问问学生他是怎么理解的,他准备怎么做
就是一个输入框,发送问题到Gpt的API端,再把Gpt的答案返回到页面上
(通过类比方法,从之前学习到的知识点引导到新的内容)

step2:基于Linux操作系统
下载代码就是短短一句命令
git clone https://github.com/ddiu8081/chatgpt-demo.git

顺便介绍git和github,鼓励学生拓宽自己的视野,多和外界交流沟通
Git is a version control system that allows developers to track changes made to their code over time. It allows multiple developers to work on the same codebase without overwriting each other's changes. Git also allows developers to revert to previous versions of the code if necessary.

GitHub is a web-based platform that provides hosting for Git repositories. It allows developers to store their code in the cloud and collaborate with other developers on the same project. GitHub also provides tools for issue tracking, project management, and code review.

Git and GitHub are important because they enable collaboration and version control for software development projects. They make it easier for developers to work together on the same codebase and ensure that changes are tracked and managed effectively.

To use Git and GitHub, follow these steps:

Install Git: Download and install Git on your computer.

Create a GitHub account: Sign up for a free GitHub account.

Create a repository: Create a new repository on GitHub to store your code.

Clone the repository: Use Git to clone the repository to your local computer.

Make changes: Make changes to the code on your local computer.

Commit changes: Use Git to commit your changes to the local repository.

Push changes: Use Git to push your changes to the remote repository on GitHub.

Pull changes: If other developers have made changes to the code, use Git to pull those changes to your local repository.

Merge changes: If there are conflicts between your changes and the changes made by other developers, use Git to merge the changes together.

Review changes: Use GitHub's tools for code review to review changes made by other developers and provide feedback.

Manage issues: Use GitHub's tools for issue tracking to manage bugs, feature requests, and other issues related to the project.

Overall, Git and GitHub are powerful tools that enable effective collaboration and

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值