Skip to main content

Deertick Agent Management and Integration Toolbox (DAMIT)

DeerTick is a versatile Python-based interface for interacting with various language models from different providers, including Replicate, OpenAI, Hugging Face, OpenRouter, and Mistral.

Features

  • Support for multiple AI providers and models
  • Interactive chat mode
  • File input/output support
  • Customizable system prompts
  • Image generation capabilities
  • Text-to-speech functionality

Installation

  1. Clone the repository:

    git clone https://github.com/deeterbleater/deertick
    cd deertick
    
  2. Install the required dependencies:

    pip install -r requirements.txt
    
  3. Set up your config.ini file with the necessary API keys:

    [keys]
    REPLICATE_API_TOKEN = your_replicate_token
    OPENAI_API_TOKEN = your_openai_token
    HUGGINGFACE_API_KEY = your_huggingface_key
    OPENROUTER_API_KEY = your_openrouter_key
    MISTRAL_API_KEY = your_mistral_key
    

Usage

Command Line Interface

python deertick.py [options]

Options:

  • -m, --model MODEL: Specify the model to use (e.g., "I-8b", "I-70b", "gpt-4")
  • -p, --provider PROVIDER: Specify the provider (e.g., "replicate", "openai")
  • -s, --system PROMPT: Set the system prompt for the conversation
  • -i, --interactive: Start an interactive chat session
  • -f, --file FILE: Read input from a file
  • -o, --output FILE: Write output to a file
  • -h, --help: Show the help message
  • -l, --list: List available models and providers

Interactive Mode

To start an interactive chat session:

python deertick.py -i -m I-8b -p replicate

File Input/Output

To process input from a file and save the output:

python deertick.py -f input.txt -o output.txt -m gpt-4 -p openai

Examples

The included examples "soap_yote" and "songwriter" are examples of how deertick can be used to quickly create workflows with AI agents.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Release files for deertick 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deertick 0.0.9
File Size Uploaded
deertick-0.0.9.tar.gz 20.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deertick 0.0.9
File Interpreter ABI Platform
deertick-0.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 42.7 kB

Release files / deertick-0.0.9.tar.gz

Download URL deertick-0.0.9.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
dcf70cfd80df02028173c8b5de50936782b01df145c14967f753a39e7314bef7
BLAKE2b-256 checksum
How to use checksums
50437d4da1f8b3d517bdc4a1da5fc8044bdbf9a3a5ded52b125c7ba57073f3a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.0

Release files / deertick-0.0.9-py3-none-any.whl

Download URL deertick-0.0.9-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c838ca34fce2b0aab9d73f0f2ffa1f56563d2462205fd3a4302641d3561cc39f
BLAKE2b-256 checksum
How to use checksums
3de2d58e9df8a71a8836be7599565611dafc2e435aac004bd63acc8e840557d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page