Unlimited ChatGPT using cloudflare workers and duckchat.
- Clear Chat: Start a new conversation at any time.
- Settings: Toggle particle effects and theme settings (light/dark).
- Open Source Contributions: Open to community contributions for further improvements.
gpt-4o-mini
claude-3-haiku-20240307
mistralai/Mixtral-8x7B-Instruct-v0.1
meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo
- Create a Cloudflare account.
- Navigate to
Workers & Pages > Create > Create Worker
. - Deploy the worker by clicking Deploy.
- Edit the code by clicking Edit Code.
- Upload worker.js into Cloudflare.
- Finally, Deploy.
Check out the live demo here. (API Endpoint)
📦 Python Usage (main.py)
if __name__ == "__main__":
Client = DuckGPT(model="gpt-4o-mini")
histories = [{
"role": "user",
"content": "you are an expert python geek"
}]
question = "How to decode base64 using python"
print(Client.Chat(question, histories))
Contributions are welcome! Feel free to submit a pull request or report an issue.
MIT License
Copyright (c) 2024 Vauth
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.