semvec/pypi-packages huggingface dataset:
llm-duckduckgo-chat 0.1.6
LLM plugin for Duckduckgo AI Chat service
License: Apache-2.0
Requires Python: >=3.9

# llm-duckduckgo-chat

[![PyPI](https://img.shields.io/pypi/v/llm-duckduckgo-chat.svg)](https://pypi.org/project/llm-duckduckgo-chat/)
[![Changelog](https://img.shields.io/github/v/release/sukhbinder/llm-duckduckgo-chat?include_prereleases&label=changelog)](https://github.com/sukhbinder/llm-duckduckgo-chat/releases)
[![Tests](https://github.com/sukhbinder/llm-duckduckgo-chat/actions/workflows/test.yml/badge.svg)](https://github.com/sukhbinder/llm-duckduckgo-chat/actions/workflows/test.yml)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/sukhbinder/llm-duckduckgo-chat/blob/main/LICENSE)

LLM plugin for talking to models exposed by DuckDuckGo AI Chat service.


## Installation

Install this plugin in the same environment as [LLM](https://llm.datasette.io/).

```bash
llm install llm-duckduckgo-chat
```
## Usage

To see exposed models

```bash
llm models
```

## Available Models

| Model | Performance | Best For | Features |
|-------|------------|----------|-----------|
| **GPT-4o mini** | Fast | Quick answers & basic tasks | • General-purpose |
| **Claude 3 Haiku** | Balanced | Technical discussions | • Good context handling<br>• Structured responses |
| **Llama 3.3** | Code-optimized | Programming tasks | • Documentation analysis<br>• Code generation |
| **Mistral Small 3** | Knowledge-focused | Complex topics | • Detailed explanations<br>• Deep analysis |
| **o3-mini** | Fastest | Simple queries | • Lightweight<br>• Quick responses |


To chat with a model

```bash
llm -m gpt4o "What is DuckDuckGo"
```

## Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

```bash
cd llm-duckduckgo-chat
python -m venv venv
source venv/bin/activate
```
Now install the dependencies and test dependencies:
```bash
llm install -e '.[test]'
```
To run the tests:
```bash
python -m pytest
```