mumu-lhl / duckduckgo-ai-chat-service

Use Duckduckgo AI Chat to provide an OpenAI-compatible API that can be used for free with gpt-4o-mini.
MIT License
10 stars 10 forks source link
ai api chatbot chatgpt claude-3-haiku claude-haiku duckduckgo gpt gpt-4o-mini llama llama3 llama3-1 openai-api self-hosted

Duckduckgo AI Chat Service

Docker Pulls GitHub Tag

English | 中文

Provide an OpenAI-compatible API for Duckduckgo AI Chat that can be used for free with gpt-4o-mini, claude-3-haiku, llama3.1...

Deploy

Render

Deploy to Render

Docker

docker run -d mumulhl/duckduckgo-ai-chat-service

Deno Deploy

Web

Fork this project, then visit https://dash.deno.com and create new project after loging in.

Command line

git clone https://github.com/mumu-lhl/duckduckgo-ai-chat-service --depth 1
deno install -A jsr:@deno/deployctl
deployctl deploy

Deno

# Run directly
deno run --allow-env --allow-net --unstable-cron https://raw.githubusercontent.com/mumu-lhl/duckduckgo-ai-chat-service/main/main.ts

# Run after installation
deno install -g --allow-env --allow-net --unstable-cron -n duckduckgo-ai-chat-service https://raw.githubusercontent.com/mumu-lhl/duckduckgo-ai-chat-service/main/main.ts
duckduckgo-ai-chat-service

Configuration

Configuration using environment variables:

Usage

Just change the base url of the place where you need to use the OpenAI API to the one you deployed.