duckai-0.2.1 is not a library.
duckai
🚀 Support my journey to full-time open-source development by sponsoring me on GitHub
DuckDuckGo AI to OpenAI API
- API authentication
- Support IP proxy pool
- Built-in Http connection pool
- Streaming/non-streaming API
Model
Model mapping, unsupported models default to gpt-4o-mini
- gpt-4o-mini ->
gpt-4o-mini - claude-3-haiku ->
claude-3-haiku-20240307 - llama-3.1-70b ->
meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo - mixtral-8x7b ->
mistralai/Mixtral-8x7B-Instruct-v0.1
Chat
Command
)
)
Install
- Install
- cargo
- Dokcer
- Compile
# Required install docker
- Generate config template file
# Debug mode
debug: false
# Listen address
bind: 0.0.0.0:8080
# Client timeout
timeout: 60
# Client connect timeout
connect_timeout: 10
# Client tcp keepalive
tcp_keepalive: 90
# Maximum tcp connection
concurrent: 100
# Proxy pool
proxies:
- http://127.0.0.1:6152
- socks5://127.0.0.1:6153
- 2001:470:e953::/48
- 192.168.1.10
# Enable TLS
tls_cert: null
tls_key: null
# API key
api_key: null
- Proxy pool
IP proxy pool type supports three types (priority: CIDR > Proxy > Interface, using round-robin strategy):
URL,protocol supports:http/https/socks4/socks5/socks5hInterface,bind local network interface addressCIDR,supportIPv4/IPv6subnet, the premise is that the subnet routes are normally communicable
Contribution
If you want to submit contributions, please open Pull Request
Get help
Your questions may have been answered in issues