Skip to content

EerieBlue/duckgpt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Duck GPT

DuckDuckGo AI Chat Wrapper.


⚙️ Usage:

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

📚 Functions:

DuckGPT.Chat

  • Request to duck api using prompt.

DuckGPT.Models

  • Get list of available models.

📂 Models:

  • gpt-4o-mini
  • claude-3-haiku-20240307
  • mistralai/Mixtral-8x7B-Instruct-v0.1
  • meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo

🛠 Cloudflare Setup:

Easy Deploy:

Deploy to Cloudflare Workers

Manually:

  • Upload worker.js into cloudflare workers.
  • Use duckgpt.XXXX.workers.dev/chat/?prompt=hi&model=gpt-4o-mini endpoint.

Sample api: duck.gpt-api.workers.dev

About

DuckDuckGo AI Chat Wrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 51.6%
  • Python 48.4%