taranjeet / unofficial-chatgpt-api Goto Github PK
View Code? Open in Web Editor NEWThis repo is unofficial ChatGPT api. It is based on Daniel Gross's WhatsApp GPT
Home Page: https://embedchain.ai
License: MIT License
This repo is unofficial ChatGPT api. It is based on Daniel Gross's WhatsApp GPT
Home Page: https://embedchain.ai
License: MIT License
playwright._impl._api_types.Error: value: expected string, got undefined
well, the queries which the script is looking for in the chatGPT page no longer exists
░▒▓ ~/g/chatgpt-api │ on main ▓▒░ node:events:491 ░▒▓ ✔ │ took 30s │ pyenv Py │ at 11:49:40 ▓▒░
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
Emitted 'error' event on Socket instance at:
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -32,
code: 'EPIPE',
syscall: 'write'
}
Can you help me with this
Hi,
thanks for the great repo!
Currently, the python scripts waits 10 seconds before returning the response. This can lead to errors for example if the result takes longer.
You can take this code (or something similar) that looks for the loading indicator and immediately returns the result when the indicator disappears.
...
send_message(message)
# Check if an answer was received
while True:
# Check loading indicator
loading = PAGE.query_selector_all(
"div[class*='result-streaming']")
if len(loading) == 0:
response = get_last_message()
break
print("Response: ", response)
...
Thanks for the great work!
This project is not an API, but rather a project that utilizes a Chrome-based automation library to open the chat.openai.com website and retrieve the output from that website. This output is not an API, but rather the direct output from the OpenAI website. Therefore, it is not appropriate to refer to this project as an API. Instead, it should be referred to as a project that utilizes the output from the OpenAI website in order to achieve its intended purpose.
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.