Chat-GPT
Ai-Chat
Update the key on line 54 of the index.html file
eg:
api直连,目前国内给API墙了,我写了一个python脚本,callGPT.py
pip install flask
pip install requests
把key放入,使用post请求
{
"message": "要发送的消息"
}
chatgpt api 网页,基于gpt-3.5-turbo
Ai-Chat
Update the key on line 54 of the index.html file
eg:
api直连,目前国内给API墙了,我写了一个python脚本,callGPT.py
pip install flask
pip install requests
把key放入,使用post请求
{
"message": "要发送的消息"
}
最好要用一个后端转发一下
Thanks for the great work.
According to https://platform.openai.com/docs/guides/chat/introduction
openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Who won the world series in 2020?"},
{"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."},
{"role": "user", "content": "Where was it played?"}
]
)
Seen like we can specify a "system role" to apply on the assistant role?
If that's so, maybe we can add a box in the beginning of the chat to let user write a role for the assistant?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.