Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/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.
https://github.com/mumu-lhl/duckduckgo-ai-chat-service
ai api chatbot chatgpt claude-3-haiku claude-haiku duckduckgo gpt gpt-4o-mini llama llama3 llama3-1 openai-api self-hosted
Last synced: 2 months ago
JSON representation
Use Duckduckgo AI Chat to provide an OpenAI-compatible API that can be used for free with gpt-4o-mini.
- Host: GitHub
- URL: https://github.com/mumu-lhl/duckduckgo-ai-chat-service
- Owner: mumu-lhl
- License: mit
- Created: 2024-08-02T16:03:28.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-12T11:06:29.000Z (4 months ago)
- Last Synced: 2024-09-30T02:37:48.765Z (3 months ago)
- Topics: ai, api, chatbot, chatgpt, claude-3-haiku, claude-haiku, duckduckgo, gpt, gpt-4o-mini, llama, llama3, llama3-1, openai-api, self-hosted
- Language: TypeScript
- Homepage:
- Size: 41 KB
- Stars: 12
- Watchers: 1
- Forks: 16
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Duckduckgo AI Chat Service
![Docker Pulls](https://img.shields.io/docker/pulls/mumulhl/duckduckgo-ai-chat-service)
![GitHub Tag](https://img.shields.io/github/v/tag/mumu-lhl/duckduckgo-ai-chat-service)English | [中文](./README_CN.md)
Provide an OpenAI-compatible API for [Duckduckgo AI Chat](https://duckduckgo.com/aichat) that can be used for free with gpt-4o-mini, claude-3-haiku, llama3.1...
## Deploy
### Render
[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/mumu-lhl/duckduckgo-ai-chat-service)
### Docker
```sh
docker run -d mumulhl/duckduckgo-ai-chat-service
```### Deno Deploy
#### Web
Fork this project, then visit and create new project after loging in.
#### Command line
```sh
git clone https://github.com/mumu-lhl/duckduckgo-ai-chat-service --depth 1
deno install -A jsr:@deno/deployctl
deployctl deploy
```### Deno
```sh
# 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:
* TOKEN - Limit the tokens that can access the API, if you don't fill in, any token can access the API.
* LIMIT - limit the request rate per second, default is 2
* CLEAN_CACHE_CRON - how many hours to clean up the cache, default is 1## Usage
Just change the base url of the place where you need to use the OpenAI API to the one you deployed.