Skip to content

Vauth/duckgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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.

Deploy to Cloudflare Workers


📡 Live Demo

Check out the live demo here.


📷 Screenshot


📦 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))

🛠 Credits


🔗 Contributing

Contributions are welcome! Feel free to submit a pull request or report an issue.


🔎 License

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.