https://github.com/vauth/duckgpt
Unlimited ChatGPT using cloudflare workers.
https://github.com/vauth/duckgpt
claude-3 cloudfare-workers duckduckgo duckduckgo-ai duckduckgo-api duckduckgo-chat gpt-4o meta-llama mistralai
Last synced: 6 months ago
JSON representation
Unlimited ChatGPT using cloudflare workers.
- Host: GitHub
- URL: https://github.com/vauth/duckgpt
- Owner: Vauth
- License: mit
- Created: 2024-08-26T09:02:39.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-11-07T17:44:07.000Z (6 months ago)
- Last Synced: 2024-11-07T18:38:10.064Z (6 months ago)
- Topics: claude-3, cloudfare-workers, duckduckgo, duckduckgo-ai, duckduckgo-api, duckduckgo-chat, gpt-4o, meta-llama, mistralai
- Language: JavaScript
- Homepage: https://[email protected]
- Size: 44.9 KB
- Stars: 5
- Watchers: 0
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Duck
GPT
Unlimited ChatGPT using cloudflare workers and duckchat.
## 🗜 Features
- **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.
## 📂 Models
- `gpt-4o-mini`
- `claude-3-haiku-20240307`
- `mistralai/Mixtral-8x7B-Instruct-v0.1`
- `meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo`
## ⚙️ Deploy
- Create a [Cloudflare](https://www.cloudflare.com/) **account**.
- Navigate to `Workers & Pages > Create > Create Worker`.
- Deploy the worker by clicking **Deploy**.
- Edit the code by clicking **Edit Code**.
- Upload [worker.js](https://github.com/Vauth/duckgpt/blob/main/worker/worker.js) into **Cloudflare**.
- Finally, **Deploy**.[](https://deploy.workers.cloudflare.com/?url=https://github.com/vauth/duckgpt)
## 📡 Live Demo
Check out the live demo [here](https://duck.gpt-api.workers.dev).
## 📦 Python Usage ([main.py](https://github.com/Vauth/duckgpt/blob/main/main.py))
```python
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))
```
## 🛠 Credits
- **Front-End Developer**: [Zarox](https://github.com/Zar0x) ([duck-gui](https://github.com/Zar0x/duck-gui))
- **Back-End Developer & GPT API**: [Vauth](https://github.com/Vauth)
## 🔗 Contributing
Contributions are welcome! Feel free to submit a pull request or report an issue.
## 🔎 License
```
MIT LicenseCopyright (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.
```