仅记录本人部署中科院学术版ChatGPT流程。
ChatGPT
GPT使用“咒语”: www.aishort.top
网址:https://chat.openai.com/
按步骤操作,输入邮箱等。
注册需手机号,可以申请一个虚拟号接收验证码。
以Get a virtual phone number. Temporary number. SMS service activation 为例,通过邮箱注册成功后,在网页左侧找寻“服务”项,选择“OpenAI”;
ChatGPT常用命令:
地址:www.aishort.top
栗子:
- 优化文本的语法,提高可读性:As a writing improvement assistant, your task is to improve the spelling, grammar, clarity, concision, and overall readability of the text provided, while breaking down long sentences, reducing repetition, and providing suggestions for improvement. Please provide only the corrected Chinese version of the text and avoid including explanations. Please begin by editing the following text:
- 翻译为英文:I want you to act as an English translator, spelling corrector and improver. I will speak to you in any language and you will detect the language, translate it and answer in the corrected and improved version of my text, in English. I want you to replace my simplified A0-level words and sentences with more beautiful and elegant, upper level English words and sentences. Keep the meaning same, but make them more literary. I want you to only reply the correction, the improvements and nothing else, do not write explanations. My first sentence is:
- 论文形式的回答:Write a highly detailed essay in Chinese with introduction, body, and conclusion paragraphs responding to the following: [问题]
- 按XXX期刊英文润色:I want you to act as an professional spelling and grammer corrector and improver. I want you to replace my simplified A0-level words and sentences with more beautiful and elegant, upper level English words and sentences. Keep the meaning same, but make them more literary and improve my expression in the style of the journal XXX.
中科院学术版ChatGPT部署
从未用过python,现利用Anaconda部署学术版ChatGPT。
部署前需完成上述注册;
安装Anaconda
下载地址:Anaconda | Anaconda Distribution ,根据系统选择下载文件并安装,安装中需要勾选“所有用户”和“Add Anaconda….”。之后主要使用:“Anaconda Prompt” 和 “Spyder”。(似乎需要手动安装python和Spyder)
下载学术版ChatGPT项目:
下载地址:https://github.com/binary-husky/chatgpt_academic
部署
打开:“Anaconda Prompt”;
建立虚拟环境gptac_venv
conda create -n gptac_venv
选择项都选“y”;
进入建立的环境gptac_venv
conda activate gptac_venv
切换路径至存放项目的地址,
e:
cd E:\ChatGPT_Academic\chatgpt_academic-master
安装依赖库
python -m pip install -r requirements.txt
生成OpenAI API Key,网址:https://platform.openai.com/account/api-keys ,点击生成Key,复制。
用Spyder打开项目中的文件config.py:
根据文件内注释填入复制的API KEY;
获取代理网络的地址,查看代理的协议、地址和端口;
科学上网,打开网址:https://ipapi.co/json/ ,右键“检查”,点击网络,Ctrl+R刷新,寻找文件json/,点击json/,右侧复制远程地址;
返回config.py文件,按注释要求输入复制的远程地址,保存;
部署完成!
运行学术版ChatGPT
科学上网,切换环境“gptac_venv”,切换路径,运行main.py;
conda activate gptac_venve:cd E:\ChatGPT_Academic\chatgpt_academic-masterpython main.py
Over!